Hi @RAVI,
I tested your code using test data and did not reproduce your issue.
But you can try using the code below.
object objCompute = new_tablez.Compute("sum(Value)", null);
if (objCompute != DBNull.Value)
{
subtotal_Account = Convert.ToDouble(objCompute);
}
else
{
subtotal_Account = 0;
}
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.