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

Counting Formula not Working

Status
Not open for further replies.

Charley71

Technical User
Aug 17, 2007
31
US
I am having trouble getting this formula to return a count. Can someone tell me what might be wrong with it. I am using crystal version 11 developer.

if (GroupName ({@monthname})="January") then count({Gprsfware.SCID})

I need it to count all the records for field SCID that were added in the month of January at the end of the report.

I am not getting an error, just a 0 count. There should be a count of 7 records.

Thanks.
 
You need to do this in two steps.
First, create this formula similar to the one you have already:

if (GroupName ({@monthname})="January")
then 1
else 0

Once you have the formula created, insert a summary field that SUMs the above formula for what ever level you need.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top