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     Find earliest date across columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Find earliest date across columns
 Login/Join
 
<Unfocused>
posted
Is there a way to determine the earliest (or latest) date from a set of columns in a single row ?

Date1 Date2 Date3
10 Mar 05 12 Sep 04 31 Dec 04


Something like EARLIEST(date1, date2, date3)
that would return 12 Sep 04?

thanks
 
Report This Post
Expert
posted Hide Post
Un, did you check out the MIN function?
MIN(date1,date2,date3)
Different from MIN.fieldname prefix thing, this MIN function takes a vector of values..
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
TABLE FILE fn
PRINT DT1 DT2 DT3 COMPUTE MDT/DMTY = MIN(DT1,DT2,DT3);
END Just remember that this will only work if DT1, DT2 and DT3 are defined as "smart dates" ie format of DMTY. If they are I6DMTY, then the minimum fvalue will be 10 MAR 05 . If that is the case, just use DEFINE to put them into a DMTY field.
 
Posts: 60 | Location: 2 penn | Registered: May 22, 2003Report This Post
<Unfocused>
posted
Thanks for your replies.
MIN works perfectly.
 
Report 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     Find earliest date across columns

Copyright © 1996-2020 Information Builders