Search code examples
sql-serveraggregate-functions

SSRS Report Total is incorrect


I want total of debit from invoice table and credit from payment table. credit total display correctly while debit is incorrect. I use Group on invoice# invoice table field.

It seems that it sum twice a value.

enter image description here

Can anyone tell me where i am wrong.

The data is stored in two tables. Invoice, which holds the Invoice# and Debit amount, and Payment which holds the Credit and Payment#.


Solution

  • Or you can do this in SSRS which is very simple just go to the Debit cell right click and select Add Total something like this in the following example, I have added a total for Unit Price column.

    Adding a Total For a colulmn In SSRS