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: 
Ameya09
Partner - Contributor III
Partner - Contributor III

How to get position of max value based on rangemax

Hi,

 

Using rangemax ,I have got the max value from multiple fields.

expression used : rangemax(field1,field2,field3)

How to get the field of the max value present in the rangemax?

For eg: here if field1 is max value,I want to get output as 'field1' and not the value of that field1.

Labels (3)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It's a bit awkward looking, but this seems to work:

Pick(Match(RangeMax(F1, F2, F3), F1, F2, F3), 'F1', 'F2', 'F3')

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

View solution in original post

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It's a bit awkward looking, but this seems to work:

Pick(Match(RangeMax(F1, F2, F3), F1, F2, F3), 'F1', 'F2', 'F3')

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com