Focal Point
[SOLVED] RECOMPUTE averages

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

June 16, 2011, 04:26 PM
Mark1
[SOLVED] RECOMPUTE averages
Is there anyway to make a RECOMPUTE do averages?

TABLE FILE CAR
BY COUNTRY
BY CAR NOPRINT
SUM CAR AVE.SEATS SEATS SALES
ON COUNTRY RECOMPUTE MULTILINES AS 'Total'
ON COUNTRY SUBFOOT
" "
END

I would really like RECOMPUTE to average the AVE.SEATS. Thanks!

This message has been edited. Last edited by: Mark1,


Windows version 768
June 16, 2011, 05:01 PM
Francis Mariani
Try calculating your own average with a COMPUTE statement - then the RECOMPUTE should work:

TABLE FILE CAR
SUM 
CAR 
AVE.SEATS

COMPUTE AVESEATS/I4 = SEATS / CNT.SEATS;

SEATS 
SALES

BY COUNTRY
BY CAR NOPRINT

ON COUNTRY RECOMPUTE MULTILINES AS 'TOTAL'

ON COUNTRY SUBFOOT
" "
END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 17, 2011, 09:02 AM
Mark1
Thanks Francis! You're a lifesaver.


Windows version 768