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: 
Karim_Khan
Creator III
Creator III

FirstSortedValue

Hi Team,

    I was making the scenario for FirstSortedValue() function.I am littele bit confused about '-' symbol.It will give the max value or min value.

Regards,

KK

KK
1 Solution

Accepted Solutions
sunny_talwar

If you use it in a chart like the way you have used it, you will see all the values. It will essentially work the same way as Only() function. But if you use this in text box object, you will see difference. -Salary will show the Name associated with the person having the maximum salary, where as Salary will show the Name associated with the person with lowest salary

Capture.PNG

View solution in original post

4 Replies
sunny_talwar

If you use it in a chart like the way you have used it, you will see all the values. It will essentially work the same way as Only() function. But if you use this in text box object, you will see difference. -Salary will show the Name associated with the person having the maximum salary, where as Salary will show the Name associated with the person with lowest salary

Capture.PNG

miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi Karim,

The symbol '-' gives you the max value. Just delete that symbol, and you'll get the min value

Regards,

MB

MK_QSL
MVP
MVP

Use

firstsortedvalue(Distinct Name,-Salary)

Karim_Khan
Creator III
Creator III
Author

Thanks for always helping

KK