All the similar questions I could find about this issue are either for SSRS 2005 (which had limits and couldn't be solved before), are unanswered, or the answers link to an external site rather than having an actual answer. Either way, here is my issue:
The report has a row group where it generates a different number for each row. I am trying to add up all these numbers and show them in the grand total row in the bottom. Therefore, I am trying to sum up all the fields using =Sum(Fields!contract_amt.Value)
outside the group. However, when I use that expression for the grand total row, it sums out all the rows in the dataset and generates a very large number due to many rows in the dataset being duplicated.
How do I make it so the expression only adds up the distinct values from the field? (ex. only the distinct rows)