Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to display name with highest score

I want to make a table which displays the name with the highest score of each exercise. The data is loaded from an excel spreadsheet like this:

exercisenamepoints
exercise1nameA10
exercise1nameB23
exercise1nameC40
exercise2nameA16
exercise2nameB12
exercise2nameC6
exercise3nameA4
exercise3nameB8
exercise3nameC5

This is how I want the result table to look like:

Exercisewinnerpoints
exercise1nameC40
exercise2nameA16
exercise3nameB8

I am using exercise as dimention and max(points) for points, but how do i set up the expression for winner?

1 Solution

Accepted Solutions
flipside
Partner - Specialist II
Partner - Specialist II

Try

=FirstSortedValue(name,-points)

flipside

View solution in original post

3 Replies
flipside
Partner - Specialist II
Partner - Specialist II

Try

=FirstSortedValue(name,-points)

flipside

IAMDV
Luminary Alumni
Luminary Alumni

Hi,

I understand you have the answer you needed. However, if you are keen to learn more about FirstSortedValue() then look at my blog. I have made a series of video tutorials on this topic.

http://qlikshare.com/tag/firstsortedvalue

Happy learning!

Cheers,

DV

Not applicable
Author

If you are using a chart, you can also do it with Dimension Limits. You can filter your data with your first expression in the chart. There are many different way to filter in Dimension Limits section on Chart Properties by your first expression.