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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SudharshanK
Creator
Creator

Get second max value of a text value

How to get the second max value of a string? I am able to get the maximum value of selected values through this function:

maxstring(total <Field>)

 

Labels (1)
5 Replies
RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi @SudharshanK 

I guess you could try 

maxstring({< field=-{“$(=maxstring(total field))”} >}field)

 

hope this helps.

best,

SudharshanK
Creator
Creator
Author

I tried this its not working

RafaelBarrios
Partner - Specialist
Partner - Specialist

hi @SudharshanK 

I put the '-' sign in the wrong place

should be:

maxstring({< field-={"$(=maxstring(total field))"} >}field)

for example, if i dont have any selection

RafaelBarrios_0-1664983956546.png

 

and on selection

RafaelBarrios_1-1664984019759.png

 

hope this one works.

best,

SudharshanK
Creator
Creator
Author

The end users did not want the metrics for the previous months so I did not have to do this calculation after all. Thanks for helping me out.

RafaelBarrios
Partner - Specialist
Partner - Specialist

Well, that happens many times

If the proposed solution solves the original problem, it would be nice if you accept it as a solution.

Best,