Focal Point
[CLOSED]want to display the highest sales value as column total

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

December 15, 2015, 05:39 AM
Shanti Akunuru
[CLOSED]want to display the highest sales value as column total
plz help me wit the code to display highest value as column total

This 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



WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP