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     [CLOSED] regarding the MAX of date.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] regarding the MAX of date.
 Login/Join
 
Platinum Member
posted
HI ALL,

i have a report which contains some 100 records,out of those 100 record,first 25 are same record,next 25 are same,like wise i have 4 sets of 25 each.
Now i want to display only 4 records only i.e; out of each 25 set i want to display only 1,so please guide me on How to proceed.
i am using distinct and it's not working;i have as field called date,can i use Max of that date to pull only one record per set.(each set has similar date,so can i proceed with max date).
please help....

This message has been edited. Last edited by: Kerry,


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Virtuoso
posted Hide Post
SUM fst./max./lst./ave. (select what is appropriate) BY DATE


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Guru
posted Hide Post
I think i dont understand your question. Are you useing BY DATE field? If you have hidden sort fields? Are you using developer studio to write this report? I dev studio you can uncheck repete sorted value or in code you can see if BY DISPLAY OFF?


WebFOCUS 7.6.10
Windows
HTML
 
Posts: 294 | Registered: March 04, 2010Report This Post
Member
posted Hide Post
Ok I assume you have the sort correctly, so what you want is the 1st record.
add the following to your report.
COMPUTE GOODREC/A1=IF FIELDNAME NE LAST FIELDNAME THEN 'Y'
REPEAT THIS OVER AND OVER TO INCLUDE ALL YOUR SORT FIELDS
ELSE 'N'; NOPRINT

.
.
.
.
WHERE TOTAL GOODREC EQ 'Y';
 
Posts: 17 | Location: Colorado, USA | Registered: January 22, 2010Report 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     [CLOSED] regarding the MAX of date.

Copyright © 1996-2020 Information Builders