You can use variables for this. Please identify your group fields and what section the summaries are in (in your sample) and also explain at what level you want the average.
My sample shows a column of counted lines for each customer. I copied the COUNT total from the Group Footer and pasted it in GH1b for display purposes along with the customer name.
I am trying to get that column of numbers averaged and placed in the report footer as an AVG total line count for all the customers.
I have the same exact situation in other columns on the same report that need to avg out SUMS and specific FORMULAS to get the final overall averages and put them in the same place on the report. I'm hoping its kinda like a standard set of formulas that you just plug different values to accomodate these different types of totals.
I hope I explained it clearly enough, because this is way b eyond my expertise in crystal reports! Thanks!
Then in the report footer add this formula:
whileprintingrecords;
numbervar sumcnt;
numbervar cnt;
if cnt <> 0 then
sumcnt/cnt
You can use the same syntax for other other fields, just adding another variable like "sumcnt", but with a different name and which sums a different field. The cnt variable can be used in all formulas.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.