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!

Using a Count in a Formula 1

Status
Not open for further replies.

BlushingFBM

Technical User
Apr 30, 2009
6
CA
Hello,

I have a report that is grouped by username and counts the items for each username.

I want to use the count # in a formula like:

If {USERS.USERNAME} = "jsmith" then {count}/9 else 0

The only problem is I don't see {count} listed in the Report Fields.

Thanks.
 
You could do [CountSmiths code]If {USERS.USERNAME} = "jsmith" then 1 else 0[/code]
You could then do a summary count of @CountSmiths. Or you could do a running total.

The use of Crystal's automated totals is outlined at FAQ767-6524.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Sorry, that should be

You could do
Code:
If {USERS.USERNAME} = "jsmith" then 1 else 0
You could then do a summary count of @CountSmiths. Or you could do a running total.

The use of Crystal's automated totals is outlined at FAQ767-6524.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top