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

display most recent event

i'm trying to select the most recent event based on a date for each customer.
dataset:
customereventdate
1sign1/2/12
1
apply1/3/12
1accept1/5/12
1renew1/7/12
2sign2/7/12
2apply2/3/12
2accept3/12/12
2deny1/4/12
3apply2/1/12
3renew3/12/12
result:
customereventdate
1renew1/7/12
2accept3/12/12
3renew3/12/12

however, if i select an event (i.e. sign), i want to see the 'signs' so i don't want to eliminate the other values, just display the most recent if no events are selected.

thanks!

1 Reply
MayilVahanan

HI

Try like this

=FirstSortedValue(Customer,-date)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.