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!

totaling/Count summary Fields

Status
Not open for further replies.

Jimgarry

MIS
May 16, 2000
112
Thanks in advance, Im new to Crystal

I am writing a report that has a summary field of employee dollars current earnings, then count the number of employees that have a check between 0 and $500, then 501 and 1000, etc.

I am not able to create a count on the groupu footer field taht totals each employee, is there any way around this.

Thanks



 
Perhaps you can supply an example of what the report will look like?

You could create a group based on the amount by using something like:

If {table.amt} <= 500 then
&quot;500&quot;
else
If {table.amt} <= 1000 then
&quot;1000&quot;
else
If {table.amt} <= 1500 then
&quot;1500&quot;

etc.

Now group on this in a cross-tab or within a report itself.

Please post version of Crystal, database, example data and expected output for best results.

-k
 
Hi thanks, that might work, I did look in the FAQ's agin and found something that is working.

I am creating a variable in the report header for the filed

numberVar acnt:=0

then in the group footer I am adding to this numbervar

whilePrintingRecords;
if {#CurrentEarningTotal} < 500 then
numbervar acnt:= acnt + 1

to display the total at the end of the report I am

WhilePrintingRecords ;
numberVar acnt


This seems to be working for what I need. thanks again for all the help

 
Your method works, but Synapsevampire's method is better and a more efficient and flexible way to use Crystal.

Madawc Williams
East Anglia, Great Britain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top