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     Creating a top 10 report?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Creating a top 10 report?
 Login/Join
 
Master
posted
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.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
quote:
WHERE RECORDLIMIT EQ 10

RECORDLIMIT applies to the selection criteria used to select data for the report.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
You need BY TOP 10 STOPSIZED


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Guru
posted Hide Post
Jason,

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.


Glenda

In FOCUS Since 1990
Production 8.2 Windows
 
Posts: 301 | Location: Galveston, Texas | Registered: July 07, 2004Report 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     Creating a top 10 report?

Copyright © 1996-2020 Information Builders