Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Ranking Totals within First By field only

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Ranking Totals within First By field only
 Login/Join
 
Gold member
posted
How can I rank total sales by store code and still show the production codes that comprise each rank.
  
DEFINE FILE SALES
TOT_SALES/I5 = UNIT_SOLD * RETAIL_PRICE
END

TABLE FILE SALES
SUM
TOT_SALES
RANKED BY TOTAL HIGHEST TOT_SALES NOPRINT
BY STORE_CODE
-*BY PROD_CODE
END


If you uncomment prod_code it will change the rankings because it is ranking by 2 by fields. I want to preserve the rankings by store_code, but display the prod_codes sold within each store code.

Thank you for your help. I'm still quite new to WF.

This message has been edited. Last edited by: Joey Sandoval,




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Gold member
posted Hide Post
I was able to solve with the following multi-verb query.

 
DEFINE FILE SALES
TOT_SALES/I5 = UNIT_SOLD * RETAIL_PRICE;
END

TABLE FILE SALES
SUM
TOT_SALES
RANKED BY TOTAL HIGHEST TOT_SALES NOPRINT
BY STORE_CODE

PRINT  PROD_CODE
BY RANK
BY TOT_SALES

END

 

This message has been edited. Last edited by: Joey Sandoval,




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Expert
posted Hide Post
Very good - I wouldn't have figured that out.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
quote:
DEFINE FILE SALES
TOT_SALES/I5 = UNIT_SOLD * RETAIL_PRICE;
END

TABLE FILE SALES
SUM
TOT_SALES
RANKED BY TOTAL HIGHEST TOT_SALES NOPRINT
BY STORE_CODE
ON TABLE HOLD
END
?FF HOLD


A little peek helps...


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Ranking Totals within First By field only

Copyright © 1996-2020 Information Builders