My column figures are correct in my report, but duplicate values are being added to the totals.
I am using:
Format(Sum(Fields!ACEG_Contribution.Value), "C")
This is not a matrix report. I am using tables so it only has table headers and table footers.
How can I fix this? Please advise a-sap.
Thanx in advance for any assistance you can provide,
gb
Hi Gerry-
Not completly certain where your duplication is coming from - as per your description. If duplicate values are present in your data, you would want to use the DISTINCT clause in your query to filter duplicates.
If you have groupings in your table, and want to subtotal rather than grandtotal, you can use the scope argument on the SUM function to filter per group i.e. Sum(Fields!Value, "Group1)".
If you want to display duplicates, bu only sum the non-duplicates, you would need to have a separate query which uses the DISTINCT caluse, then create an expression in your table footer which does sum of second dataset. i.e. SUM(Fields!Value, "DataSet2")
Hope that helps,
Thanks, Jon
No comments:
Post a Comment