Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
abonnery
Contributor III
Contributor III

First Sorted Value in Auto Sorting

Dear Qlik Sense experts, 

 

I was wondering how to get the max of this list from the auto sorting of Qlik Sense. To be more precise, from this very simple list, I would like to obtain the value 'RF_2022_02'

I tried using the max (not working at all) or the function FirstSortedValue but it didn't work as I intended (see enclosed capture). 

There isn't other fields that can help the field as a max appart from the auto sorting.

Do you know how I can get this value ?

first sorted value pb.PNG

Thank you for your help!

Labels (1)
1 Solution

Accepted Solutions
abonnery
Contributor III
Contributor III
Author

Perfect, it worked like a charm !  Thank you very much.

Can you explain why the maxstring worked and not the max ? And why did you add 'All' before ? (is it different to total ?)

 

View solution in original post

4 Replies
Or
MVP
MVP

Try MaxString({1} [Cost Baseline Version - FA]) rather than Max(), as the latter is intended for numeric values.

abonnery
Contributor III
Contributor III
Author

It's not showing 'RF_2022_02', as I would like  instead it shows all the values in the "right order"first sorted value pb.PNG

 

Or
MVP
MVP

Sorry, moment of distraction there. {1} only ignores selections, not dimensions.

MaxString(All [Cost Baseline Version - FA])

abonnery
Contributor III
Contributor III
Author

Perfect, it worked like a charm !  Thank you very much.

Can you explain why the maxstring worked and not the max ? And why did you add 'All' before ? (is it different to total ?)