Focal Point
Finding Average and Total

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7571003162

December 11, 2007, 10:25 PM
Deepa497
Finding Average and Total
Hi,
I have a report in which I want to find average and then total for each column which is grouped by first column. I used
ON COL1 SUBTOTAL AVE. COL2 AVE. COL3...
ON COL1 SUBTOTAL COL2 COL3....

But in the ouput it is not showing the total although it is showing average for each group.
Can anyone suggest anything for the same?

Thanks
Deepa


WebFocus 7.1.4, Windows Server 2005 , HTML/EXL/PDF
December 12, 2007, 05:02 AM
FrankDutch
It's a tric

DEFINE FILE MOVIES
NRATING/A10=RATING;
END
TABLE FILE MOVIES
PRINT
     COPIES
     LISTPR
     WHOLESALEPR
     DIRECTOR
BY NRATING NOPRINT
BY RATING
BY CATEGORY

ON RATING SUBTOTAL
     SUM. LISTPR AS 'SUM'
ON NRATING SUBTOTAL
     AVE. LISTPR
     AVE. WHOLESALEPR AS 'AVE'
END


I created a dummy by field that's in fact the same as the original and now you can add an aextra line with the average values.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7