Focal Point
[CLOSED] Grand Total on Group By

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

March 17, 2010, 12:23 PM
nsk110483
[CLOSED] Grand Total on Group By
All,

TABLE FILE CAR
PRINT SALES
BY COUNTRY
BY CAR
ON TABLE RECOMPUTE
END

I need to know, how to get a grand total for each car?

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


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
March 17, 2010, 12:27 PM
EWoerle
nsk,

you can do this very easily using the GUI. Open up the report painter and try it in there by looking at Subtotals and then look at the code. That will give you your answer.

Eric


Eric Woerle
WF 7.6.7 Reportting Server
ETL 7.6.10
Dev Studio 7.6.7
March 17, 2010, 12:35 PM
GinnyJakes
TABLE FILE CAR
PRINT SALES
BY COUNTRY
BY CAR SUBTOTAL

END

Eric is correct. Here is the code that might be generated. Uber easy.

Note: My original post had copied the original code from the poster. I have corrected it. Frowner

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


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
March 18, 2010, 03:10 AM
Tony A
Change the ON TABLE RECOMPUTE to ON CAR SUB-TOTAL.

Make sure you use the hyphenated version of SUB-TOTAL and not SUBTOTAL.

Or did you mean totals only on Car and Report and not on Country? If so use the non-hyphenated version Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
March 19, 2010, 11:00 AM
Danny-SRL
Well, this was elementary, straight out of the book.
However, maybe the real question that "nsk" wanted to ask is:
  
TABLE FILE CAR
PRINT SALES
BY CAR SUBTOTAL
BY BODYTYPE
END

and also get at the end a list of BODYTYPEs with BODYTYPE totals for the whole file.
Or am I way off?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF