[CLOSED]want to display the highest sales value as column total
plz help me wit the code to display highest value as column totalThis message has been edited. Last edited by: <Emily McAllister>,
WebFOCUS 8 Windows, All Outputs
December 15, 2015, 06:54 AM
Ricardo Augusto
Please, give us more information.
WebFOCUS 8.1.05 / APP Studio
December 15, 2015, 07:14 AM
MartinY
If I understand properly what you're asking for, it may not be the only way, but this is one
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ON TABLE HOLD AS TMP FORMAT FOCUS
END
-RUN
TABLE FILE TMP
SUM RETAIL_COST
BY HIGHEST RETAIL_COST NOPRINT
BY COUNTRY
END
-RUN
Please, next time be more detailed and if possible, include a sample of your need; it helps us to understand you.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
December 15, 2015, 07:40 AM
Tim Korbmacher
He wants, the way I understand it, to display the max value of a column on the column-total, instead of the column-total. The easiest way that somewhat resembles this would be:
TABLE FILE CAR SUM MAX.DEALER_COST ON TABLE HOLD AS TKHOLD FORMAT ALPHA END -RUN
-READ TKHOLD, &DEALER_COST -RUN
TABLE FILE CAR PRINT * FOOTING "Highest Value: &DEALER_COST" ON TABLE SET STYLE * TYPE=FOOTING, JUSTIFY=RIGHT,$ END -RUN
The harder way would be to make multiple holdfiles, and computing everything yourself...
WebFOCUS 8 Windows, All Outputs
December 16, 2015, 09:51 AM
George Patton
TABLE FILE CAR
SUM MAX.DEALER_COST NOPRINT
PRINT DEALER_COST
ON TABLE SUBFOOT
"<MAX.DEALER_COST"
END