Focal Point
Subtotal with averages

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

August 03, 2007, 11:32 AM
EWoerle
Subtotal with averages
I am trying to write a report where I subtotal all my columns but one. On that column I want to have an average. My code for that looks like this:

ON DUMMY SUMMARIZE
SHIP_QTY
ORD_QTY
EXT_PRICE AS 'TOTAL'
ON DUMMY SUMMARIZE
AVE. FQY AS 'TOTAL'

When I run it I am getting the following error

" (FOC36376) CANNOT COMBINE SUBTOTAL/RECOMPUTE STYLES WHEN SUMMARYLINES=OLD
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND"

Does anyone know what that error means?

From what I am reading here

http://www.informationbuilders.com/new/tfc/summer2004/03_subtotal.html

I should be able to do this. Does anyone have any suggestions?

Eric


Eric Woerle
WF 7.6.7 Reportting Server
ETL 7.6.10
Dev Studio 7.6.7
August 03, 2007, 11:48 AM
N.Selph
You want to issue:

SET SUMMARYLINES=NEW

If you read the doc, you see that the SUMMARYLINES OLD does not let you mix AVE with SUM on the subtotal. SUMMARYLINES=OLD is also the default.


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
August 03, 2007, 12:11 PM
EWoerle
Thanks I must have missed that line in the doc.


Eric Woerle
WF 7.6.7 Reportting Server
ETL 7.6.10
Dev Studio 7.6.7