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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

help in set analysis

Hello got the following sample data:

TPK, Date, Metric

A, 7/6/2015, 9

A,8/6/2015, 15

B,5/5/2015, 10

B, 6/5/2015, 7

now the user selects the months May and June

what I want to display in a pivot table (dimension = TPK) for A, 15 and for B, 7

i.e. the metric that corresponds to the latest date for each TPK in the selection

I can walk on water when it freezes
1 Solution

Accepted Solutions
sunny_talwar

Try this expression:

=FirstSortedValue(Metric, -Date)

View solution in original post

4 Replies
sunny_talwar

Try this expression:

=FirstSortedValue(Metric, -Date)

sunny_talwar

This:

Capture.PNG

Anonymous
Not applicable

do you have master calendar?

If yes why don't you try with Max(Date)?

ali_hijazi
Partner - Master II
Partner - Master II
Author

yeah

I forgot about this function

I can walk on water when it freezes