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.
I would like to create a "Top 10" report based on a compute field. When I set a recordlimit EQ 10, I don't get the true "Top 10"
Is there something I"m doing wrong? here is my fex.
TABLE FILE LOGISTICS_TBL SUM SUBTOTAL_OF_ORDER/P11BCM AS 'Total,$$$' STOPS/P11BC AS 'Stops' BY TOTAL HIGHEST COMPUTE STOPSIZE/D14CBM = SUBTOTAL_OF_ORDER / STOPS; AS 'Stop,Size' BY CUST_NUMBER BY CUST_NAME WHERE RECORDLIMIT EQ 10
Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
Try using "ranked by". Here's an example using the "CAR" file.
TABLE FILE CAR
SUM
RETAIL_COST
DEALER_COST
BY COUNTRY
BY CAR
ON TABLE HOLD AS DATASUM
END
-*
DEFINE FILE DATASUM
PROFIT/D12.2 = RETAIL_COST-DEALER_COST;
END
-*
TABLE FILE DATASUM
PRINT
RETAIL_COST
DEALER_COST
RANKED BY HIGHEST 3 PROFIT AS 'POTENTIAL PROFIT'
BY COUNTRY
BY CAR
END
Your code would be something like this.
TABLE FILE LOGISTICS_TBL
SUM
SUBTOTAL_OF_ORDER
STOPS
BY CUST_NUMBER
BY CUST_NAME
ON TABLE HOLD AS DATASUM
END
-*
DEFINE FILE DATASUM
STOPSIZE/D14CBM = SUBTOTAL_OF_ORDER / STOPS;
END
-*
TABLE FILE DATASUM
PRINT
SUBTOTAL_OF_ORDER/P11BCM AS 'Total,$$$'
STOPS/P11BC AS 'Stops'
RANKED BY HIGHEST 10 STOPSIZE AS 'Stop,Size'
BY CUST_NUMBER
BY CUST_NAME
END
I'm sure there is a short way to code this, but this is what came to mind first.