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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

counting based on boolean condition 1

Status
Not open for further replies.

mjd3000

Programmer
Apr 11, 2009
136
GB
I have a column like this :

BooleanColumn:
Yes
No
No
Yes
Yes

And for my total for this column I need to count only the records where the boolean value is true (in this case it would be 3). Does anybody know how to do this?
 
Add a calculated field, and in the expression put:
Code:
=Iif(Fields!BooleanColumn.Value, 1, 0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top