Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Subtotals on a matrix

Author  Topic 

ecomajor
Starting Member

12 Posts

Posted - 2009-02-23 : 11:08:08
I know this a common question but I cant seem to figure out how to do this from searching around.

1) When I add a subtotal on a matrix if the field is a percentage I dont get the right value in the subtotal. An Example


Employees with Cars %with Cars
New York 5 1 20
New Jersey 10 3 30
Total 15 4 50

For some reason I am getting the sum of the percentages as opposed to the right result which is about 27%. I know I need to use inscope for this situation but I am unsure how to do so.

Please help.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-24 : 10:31:46
=IIF(Inscope("Yourgroupname"),your expression, SUM(Fields!WithCars.value,"yourgroup")/SUM(Fields!Employees.value,"yourgroup"))
Go to Top of Page
   

- Advertisement -