I have a report that has two datasets. One contains detail with a total amount. The second is a dataset that contains data for breaking down totals by description.
The expression I am having difficulty with is one the second tablex for dataset2. It is a calculation to find the percentage of the description totals against the grand total amount from dataset1.
It appears that the dataset1 total is correct, the problem is that the calculation which is on a total line for the description group appears to be calculating based on the grand total of the description set instead of the total of the description group.
Here is the expression in question:
=iif(sum(Fields!credit_amt.Value, "DataSet2")<0,abs(Sum(Fields!credit_amt.Value, "DataSet2")/Sum(Fields!NonCredit_total.Value, "DataSet2")),0)
I am working with Visual Studio 2008 / SLQ Server 2008 R2
Any ideas???