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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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
Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this expression:

=FirstSortedValue(Metric, -Date)

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

Try this expression:

=FirstSortedValue(Metric, -Date)

sunny_talwar
MVP
MVP

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