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!

Sum of a Sum...

Status
Not open for further replies.

humorme201

IS-IT--Management
Mar 3, 2005
3
US
Knowing that one cannot perform a sum of a sum. What is the best workaround. We are supposed to use the value of the sum in group header #4 and sum it in group footer #2.

My sum is as follows for group header #4:
Round(Sum ({@DescrYTD}, {@Description}))-(Sum ({@DescrPrior}, {@Description}))

Any and all helpful suggestions is greatly appreciated.
 
Try the following in the group footer, it will give you the running total if that's the intent:

numbervar MyValue:=MyValue+Round(Sum ({@DescrYTD}, {@Description}))-(Sum ({@DescrPrior}, {@Description}))

This assumes that your current summary is working.

-k
 
I just tried your suggestion and it says that a number is required..I am using Crystal 9
 
I changed it to currencyvar and it is almost correct...how do I reset it??
 
In the group header:

WhilePrintingRecords;
If not InRepeatedGroupHeader then Numbervar MyValue:=0

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top