Groups | Blog | Home
all groups > sql server reporting services > september 2004 >

sql server reporting services : Conditional Count for Row Group together with Column Group


JiaN
9/21/2004 9:55:03 PM
Division =Fields!Status.Value
Total
=Fields!Division.Value
=Count(iif("Status"=Fields!Status.Value,1,0),"Division")
Total:

the above is the matrix that i had done to count some values. The
"=Fields!Status.Value" is a column group call Status and the
"=Fields!Division.Value" is a row group call Division. My column goup
contains 3 fields which are "Accepted", "Rejected" and "Pending" and my row
group contais all my division fields. My database had a record of all the
submissions that had been submitted by the different divisions and what is
their submission current status which is either Accepted, Rejected or Pending.

Now what i want to achieved is that i want to display the Number of
Accepted, Rejected and Pending submissions for each Division by using the
Count function. But the expression that i had did does not give me the actual
result. i need some help on what correct expression should i use.

JiaN
9/21/2004 11:53:02 PM
ok, managed to solve it with a simple expression =Count(Fields!Status.Value)
Thanks anyway. =)

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