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!

Suming a formula

Status
Not open for further replies.
Apr 28, 2006
2
GB
Hi,

I have a problem that is driving me crazy.

I am working an average out for each customer and I need to sum all the averages together and not work out and overall average I have 6 groups and the average per customer is calculating correctly but I can't sum the averages up.

I can't use a running total or a formula as the average I have created isn't selectable.

Can anyone please help
 

Assuming the average summary field is in the customer group footer, put this formula in the footer also:

whileprintingrecords;
numbervar v_average;
v_average := v_average + average({TheFieldYou'reAveraging},CustomerField)


Then in the report footer this formula will display the sum:

whileprintingrecords;
numbervar v_average;
v_average
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top