Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get the values which contains oldest date?


Hi,

I have a table box which gets data from excel file. The columns are

For e.g.:

ID               Summary        Date

442542       5months         23/09/2008

442542       5months         02/01/2012

How can I get the table box which contains only the values with oldest date. I,e

ID               Summary        Date

442542       5months         23/09/2008

Thanks.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Min(Date)

UPDATE :

SCRIPT

Temp:

Load * Inline

[

  ID,               Summary,        Date

  442542,       5months,         23/09/2008

  442542,       5months,         02/01/2012

];

Load

  FirstSortedValue(ID, Date) as ID1,

  FirstSortedValue(Summary, Date) as Summary1,

  FirstSortedValue(Date, Date) as Date1

Resident Temp;

Now create a table box with dimensions

ID1, Summary1 and Date1

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Min(Date)

UPDATE :

SCRIPT

Temp:

Load * Inline

[

  ID,               Summary,        Date

  442542,       5months,         23/09/2008

  442542,       5months,         02/01/2012

];

Load

  FirstSortedValue(ID, Date) as ID1,

  FirstSortedValue(Summary, Date) as Summary1,

  FirstSortedValue(Date, Date) as Date1

Resident Temp;

Now create a table box with dimensions

ID1, Summary1 and Date1

Not applicable
Author

Thanks Manish. How can I give this in table box?

MK_QSL
MVP
MVP

replied as an update

Not applicable
Author

That's super working!  Thanks.