Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
sspawar88
Creator II
Creator II

Second Max of Date

Hi Community,

How Can i Select Second Max Value in Qlikview by Date_ID?

Date_IDDate
27504/03/2016
24722/04/2016
25520/05/2016
4 Replies
sunny_talwar

Here there are only one Date_ID, but if there were more then 1, you can use this: Max(Date, 2)

amit_saini
Master III
Master III

Hi,

Try:

Last Date:  Date(max(Date_Field),'DD/MM/YYYY')

Last Previous Date: Date(max(Date_Filed)-1,'DD/MM/YYYY')


Thanks,

AS

swuehl
MVP
MVP

FirstSortedValue(DISTINCT Date, -Date, 2)

sunny_talwar

Stefan - why not use Max() here? Is there a benefit of using FirstSortedValue() over Max()?