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

Count 1

Status
Not open for further replies.

savok

Technical User
Jan 11, 2001
303
AT
Lets say I have a field on the report which is either YES or NO, and I have 20 NO and 2 YES, I know how to get a total count which is 22, but how can i get a count of only the YES fields, which is 2?


thanks
 
This is a conditional total which can be done 2 ways.
See FAQ #1B, and read the section on conditional totals.
Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Another question, where do i find the FAQ?
 
I made a fomula

If {table.late} = 'NO' then
1
else
0


but all this does is only count the first row?
 
Never mind found the problem, I didnt do the Sum ;)

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top