Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting Specific Rows

Status
Not open for further replies.

ccshadow

Programmer
Jan 29, 2004
33
0
0
US
I'm new to Reporting Services so this may be a painfully simple question to answer. The report I'm creating needs to count rows that reach certain criteria. For example, counting the number of rows where the days worked is greater than 5. Seems like the following should work, but it doesn't.
Code:
=Count(Fields!daysWorked.Value > 5)
How do I accomplish this?
 
try

=SUM(IIF(Fields!daysWorked.Value > 5,1,0))

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top