Focal Point
[SOLVED] Sub total and average in the same footing

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

January 30, 2017, 12:53 PM
Doug
[SOLVED] Sub total and average in the same footing
OK there, I'm having a bit of brain freeze here.

So, how do I display the total dealer_cost and retail_cost and the average of the, totally bogus, sales in the sale line (subfoot, subtotal, recompute, whatever) for this report? The average sales should be 19052.

SET PAGE = NOLEAD
TABLE FILE CAR
SUM DEALER_COST RETAIL_COST 
COMPUTE SALES/D12C=RCOST * 1.1 ; 
BY COUNTRY BY CAR
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS CARFILE
END
TABLE FILE CARFILE
SUM DEALER_COST SALES RETAIL_COST BY COUNTRY BY CAR
ON TABLE SUBFOOT
"AVERAGE SALES: <ST.AVE.SALES"
ON TABLE SUBTOTAL
END


Thanks in Advance, Doug

PS: This is in 8105.

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
January 30, 2017, 02:51 PM
Danny-SRL
Doug,

Thaw:
  
-* File doug02.fex
SET PAGE = NOLEAD
TABLE FILE CAR
SUM DEALER_COST RETAIL_COST 
COMPUTE SALES/D12C=RCOST * 1.1 ; 
BY COUNTRY BY CAR
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS CARFILE
END
TABLE FILE CARFILE
SUM DEALER_COST RETAIL_COST SALES  
BY COUNTRY BY CAR
ON TABLE SUBTOTAL DEALER_COST RETAIL_COST AVE. SALES
END



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

January 30, 2017, 03:51 PM
Doug
That's a mazing Danny,

What's with the space between "AVE." and "SALES"? It works with that spaced out! Yea!

BTW: I need this to work with a lengthy / left justified heading and table footing for HTML, PDF, and Excel AND breaking on, in this case, COUNTRY. I'm working with that now to see if it works.

Thanks, Doug
February 01, 2017, 01:01 PM
Tamra
quote:
AVE. SALES

Check out this link for more information on the space after AVE. field - Usage Notes for Summary Prefix Operators


Thank you for participating in the Focal Point Forum!
Tamra Colangelo
Focal Point Moderator
Information Builders


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5