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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlik Sense Set Analysis - Retrieving when MAX/MIN occurs

Hi,

I'm trying to retrieve in a KPI when the min or max value of my dataset occurs.

To put it simply I got 2 fields, one with times stamps and another with values. I want to retrieve the timestamp of the min/max value in a set expression.

I tried sum({<Value={$(=Max(Value))}>} [Date/Time]), it returns an absurd result,

I tried a simple if(Value=max(Value),[Date/Time]) and returns nothing.

Probably simple but I couldn't find any clue here yet and any help would be much welcome!

Etienne

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

How about this

FirstSortedValue(DISTINCT [Date/Time], -Value)

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

How about this

FirstSortedValue(DISTINCT [Date/Time], -Value)