Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select Date in a column

Hi all, please help if you can

I need a way to find the second highest value in a date range.

So if this is the Table

Date

17/10/2012

14/10/2012

13/10/2012

11/10/2012

05/10/2012

I would want the formula to return 14/10/2012...

I might be over thinking this but I am not sure how to do this..

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try this: =date(FirstSortedValue( [Date],-[Date],2),'DD/MM/YYYY')

Also make sure your date is really a date and not text. Use the date# function if necessary.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try this: =date(FirstSortedValue( [Date],-[Date],2),'DD/MM/YYYY')

Also make sure your date is really a date and not text. Use the date# function if necessary.


talk is cheap, supply exceeds demand
Not applicable
Author

Gysbert, thanks for this! it headed me in the right direction... I ended up using this:

=FirstSortedValue(DISTINCT [Date],-[Date],2)