Groups | Blog | Home
all groups > sql server reporting services > december 2005 >

sql server reporting services : Counting Rows



Potter
12/28/2005 6:43:03 AM
John,

Try having the expression evaluate like this:

Count(iif(cint(field!.condtion1.value)=-1, 1, nothing))
John W. Hart
12/28/2005 9:00:19 AM
I have a simple report, listing patient names, and then columns depending on
certain condition. If they have the condition the column is True, and if
they don't the column is false.

The problem I have is trying to count how many have each condition. I
inserted the following expression in the footer:

=Count(cint(field!.condtion1.value)=-1)

If the column is true it does resolve to a -1, a 0 if it is false.
The expression just counts every row. It doesn't seem to evaluate the
expression.

Any help would be appreciated.

John Hart

William
12/29/2005 6:41:03 AM

or try

SUM(iif(field!.condtion1.value = true, 1, nothing))

AddThis Social Bookmark Button