Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to find top 3 highest paid employee from different department using set analysis

how to find top 3 highest paid employee from different department using set analysis

3 Replies
shiveshsingh
Master
Master

Try This

=aggr(sum({<Name = {"=Rank(Sum(Salary))<=3"}>}Salary),Dept)

sunny_talwar

I don't think you need set analysis here... I think you need FirstSortedValue function...

FirstSortedValue(Employee - Aggr(Sum(Salary), Employee), 1)

FirstSortedValue(Employee - Aggr(Sum(Salary), Employee), 2)

FirstSortedValue(Employee - Aggr(Sum(Salary), Employee), 3)

shiveshsingh
Master
Master

Nice