***CLOSED BY HIGHEST 10 SALES_AMOUNT etc question...
This easily gets me the 10 highest sales amounts. Is there something that gets me something like the 9 highest amounts with everything else lopped into the 10th..sort of an 'Other' category...suggestions?This message has been edited. Last edited by: RobertF,
WebFOCUS 8206.08 Windows, All Outputs
December 30, 2015, 04:16 AM
Ricardo Augusto
Hi RobertF,
you can create a HOLD after sort highest 10 sales. Then you can DEFINE this HOLD preparing your data to report later.
I hope it helps.
WebFOCUS 8.1.05 / APP Studio
December 30, 2015, 11:24 AM
Spence
TABLE FILE CAR PRINT SALES NOPRINT RANKED BY HIGHEST SALES BY MODEL ON TABLE HOLD END DEFINE FILE HOLD NEW_MODEL/A24 = IF RANK GT 9 THEN 'All Others' ELSE MODEL; END TABLE FILE HOLD SUM SALES BY NEW_MODEL END
WF 8 version 8.2.04. Windows. In focus since 1990.
December 30, 2015, 11:26 AM
Ricardo Augusto
WebFOCUS 8.1.05 / APP Studio
December 30, 2015, 11:59 AM
RSquared
Try adding this BY HIGHEST 9 SALES PLUS OTHERS AS 'Others' Courtesy of a Walter Blood presentation.
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit