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     Getting first ten maximum RECORDS (based on values)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Getting first ten maximum RECORDS (based on values)
 Login/Join
 
Gold member
posted
Hi,

i have following set of values from which THE FIRST 10 MAXIMUM need to be displayed i.e. if i have

86%, 93%, 34%, 78%, 12%, 12%, 12%, 12%, 12%, 87%, 34%, 56%, 67%, 9%, 10%, 11% (with 34% -2 times and 12% - 5 times)

i need to display first "10 max records" i.e.

93%, 87%, 86%, 78%, 67%, 56%, 34%, 34%, 12%, 12%

But when i use

TABLE FILE FILENAME
COMPUTE V_VAR/D20.2% = (ABC/DEF)*100;
BY HIGHEST 10 TOTAL V_VAR
BY FIELD1
END

i get 15 records with 34% - 2 times, 12% all 5 times, along with 11% and 10%. i.e.
93, 87, 86, 78, 67, 56, 34, 34, 12, 12, 12, 12, 12, 11, 10.
Whereas i need only 10 maximum records NOT first 10 maximum values.

if i use RECORDLIMIT EQ 10 then few records are not fetched and i get wrong records.

please reply asap.

thx
CD
 
Posts: 78 | Registered: December 11, 2005Report This Post
Master
posted Hide Post
Try this,

TABLE FILE FILENAME
PRINT
COMPUTE V_VAR/D20.2% = (ABC/DEF)*100;
BY HIGHEST TOTAL V_VAR
BY FIELD1
ON TABLE HOLD AS TEMP
END
-RUN

TABLE FILE TEMP
PRINT V_VAR
BY FIELD1
WHERE RECORDLIMIT EQ 10
END
-EXIT

Hope this helps,


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report 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     Getting first ten maximum RECORDS (based on values)

Copyright © 1996-2020 Information Builders