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.
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
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