all groups > sql server reporting services > december 2005 >
You're in the

sql server reporting services

group:

Group sums wrong in Matrix


Group sums wrong in Matrix Jsarna
12/21/2005 2:38:39 PM
sql server reporting services:
Banging my head against the wall on this one.

Running a matrix report in RS 2000. I have 2 groupings, Department and
Company. I want to get a sum of total hours for each job code and
Department and Company. The job code hours show up in the detail, as

=Iif (Len(sum(Fields!HoursTotal.Value)) = 0 , 0,
sum(Fields!HoursTotal.Value ))

When I run the report, the sum for the department is off.

Job A 8.0
Job B 0.0
Job C 8.2
Job D 71.1
Job E 99.5
---------
Group Sum 186.7 (should be 186.8)

Any idea of what is wrong?

The Stored procedure returns values to 1 decimal place as a double.

Joe
RE: Group sums wrong in Matrix Henry Chen
12/21/2005 10:39:01 PM
why do you want to use:
Iif (Len(sum(Fields!HoursTotal.Value)) = 0 , 0,
sum(Fields!HoursTotal.Value ))

can you try
Iif (sum(Fields!HoursTotal.Value) = 0 , 0,
sum(Fields!HoursTotal.Value ))

or
Iif (sum(Fields!HoursTotal.Value) = 0.0 , 0,
sum(Fields!HoursTotal.Value ))

to see what happen?

in format of group sum, set it to n2 and see what happen?





[quoted text, click to view]
AddThis Social Bookmark Button