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

Count field values

Status
Not open for further replies.

tsimsnh

Programmer
Mar 15, 2006
6
US
I have a formula field that is providing values of yes or no. I need to count the number of yes in the field. Not having any luck getting count to filter out the n's. Any ideas? Thanks!
 
You can eitehr create a formula or use a Crystal Running Total.

If a Running Total, in the evaluate use a formula palce:

{table.field} = "Yes"

If a formula, use:

if {table.field} = "Yes" then
1
else
0

Then place the field in the details, right click it and select insert->summary->sum

Now you can delete the field from thye details.

If you want to exclude all of the NOs from the entire report, go to Report->Selection Formula->Record and place something like:

{table.field} = "Yes"

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top