I have two column groups, they have their individual row totals, calculated by
Sum(Fields!ColumnGroup1.Value)
and
Sum(Fields!ColumnGroup2.Value)
I then have a column that shows the difference between the two sums, but only if their total difference is bigger than 0
=IIF(
Sum(Fields!ColumnGroup1.Value) - Sum(Fields!ColumnGroup2.Value) > 0.00,
Sum(Fields!ColumnGroup1.Value) - Sum(Fields!ColumnGroup2.Value),
0.00)
Now the row contains my two column groups, their totals and their differences if it is bigger than 0
How do I calculate the sum of all the rows for the expression column ?
For some reasons the following gives me incorrect values:
=SUM (
IIF(
Sum(Fields!ColumnGroup1.Value) - Sum(Fields!ColumnGroup2.Value) > 0.00,
Sum(Fields!ColumnGroup1.Value) - Sum(Fields!ColumnGroup2.Value),
0.00)
)
Is that suppose to work ?
Thanks!