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!

Summary of a Maximum Value

Status
Not open for further replies.

checkai

Programmer
Jan 17, 2003
1,629
US
I have a Maximum Value in an Employee group that I want to sum on in the Office group...

Office Sum(Max(amt.))
Employee Max(Amt.)
details... Amt.


I get a "The Summary / Running Total field could not be created" error.

Thanks,
DLC
 
Crystal can't summarize summaries.

Use a formula in the group footer to increment a variable:
-----------------------------------------------------------
WhilePrintingRecords;
Global NemberrVar sum_of_max;
sum_of_max := sum_of_max + Maximum({amount}, {employee_id})
-----------------------------------------------------------

Use a formula in the Report Footer to show the total of the max values:
-----------------------------------------------------------
WhilePrintingRecords;
Global NemberrVar sum_of_max;
-----------------------------------------------------------

Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top