Focal Point
[CLOSED] Sorting a SUM field

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

June 15, 2009, 11:36 AM
T.Peters
[CLOSED] Sorting a SUM field
Is there a way to sort by a SUM field in WebFocus? I have a report that lists loss ratios by Sales Rep Name and Account Name with conditional styling on the loss ratio field that indicates different tolerance levels. I would like this report to come out with the ratios ordered from highest to lowest. Currently, the only solution I know of is to create it in AHTML and allow the user to sort how they see fit, but I would like the default to already be in the highest to lowest order. Suggestions?

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


WebFOCUS: 7702
O/S : Windows
Data Migrator: 7702
June 15, 2009, 11:42 AM
GinnyJakes
BY TOTAL


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
June 15, 2009, 02:04 PM
T.Peters
Any ideas how to in IBM Webquery? When I try to edit the source and put that command in, the text editor deletes it.


WebFOCUS: 7702
O/S : Windows
Data Migrator: 7702
June 15, 2009, 02:34 PM
Francis Mariani
Did you try BY TOTAL sum-field?

TABLE FILE CAR
SUM
COMPUTE RATIO/D5 = RETAIL/DEALER * 100; 
SALES
BY HIGHEST TOTAL RATIO NOPRINT
BY COUNTRY
BY CAR
END



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