Focal Point
[CASE OPEN] WF8: RANKED BY HIGHEST 20 TOTAL {FIELD}?

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

December 08, 2014, 12:21 PM
Doug
[CASE OPEN] WF8: RANKED BY HIGHEST 20 TOTAL {FIELD}?
Has anyone seen any significant differences using the "RANKED BY HIGHEST 20 TOTAL {FIELD}" command, in WebFOCUS 8? I have. It results in RANKing the LWEST 20 {FIELDs} from high o low... I'm working on it but don't want to go crazy with it...

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
December 08, 2014, 12:23 PM
Doug
BTW: It does not malfunction using a simple CAR file fex
TABLE FILE CAR
SUM DCOST
PRINT MODEL
RANKED BY HIGHEST 3 TOTAL DCOST
WHERE COUNTRY EQ 'ENGLAND'
END

This message has been edited. Last edited by: Doug,
December 08, 2014, 02:17 PM
Doug
BTW: This does not work as is in WF8 but does work quite nicely in WF7:
TABLE FILE WEEKLY_SKU_SUMM
SUM NET_SALES_RETAIL_AMT
RANKED BY HIGHEST 10 NET_SALES_RETAIL_AMT NOPRINT
BY SKU BY SKU_DESC BY DEPARTMENT BY BUYER BY PRICE
WHERE WEEK EQ LAST_WEEK
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
. . . 
ENDSTYLE
END

December 08, 2014, 02:35 PM
Francis Mariani
Doug, it would be great if you reproduced this problem using one of the IBI sample files (not CAR if possible), then open a case. This sounds like a major issue.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 08, 2014, 03:52 PM
Doug
I appreciate the suggestion. However, I can't dup it with the sample FOCUS files, I tried Frowner.

I may need to do a work-around with this via a hold file (which works), at least for now so that production can go on... Probably followed by a case...
December 09, 2014, 09:24 AM
j.gross
quote:
SUM NET_SALES_RETAIL_AMT
RANKED BY HIGHEST 10 NET_SALES_RETAIL_AMT NOPRINT


If you remove the NOPRINT, do the two NET_SALES_RETAIL_AMT columns show matching values?

If not, there is more than one row instance per combination of the sort keys, and you are ranking on detail values of NET_SALES_RETAIL_AMT, rather than the sum; which could explain your difficulty replicating the problem on CAR.