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: 
MEBG93
Creator
Creator

Group by in Aggr() or chart expression

Hello everyone!

Silly question: is there a way to Group by a dimension in a aggr () function? I need to show only the top salesmans each by their highest sales. Eg: attached picture

 

Labels (2)
3 Replies
Femke
Contributor III
Contributor III

Hi MEBG93

You can try to put a limitation in your chart (see picture) and choose for the top 3?

Kind regars

Femke V

 

MEBG93
Creator
Creator
Author

Hi Femke! Yes i'm aware of that functionality, although that criteria comes independently from the overall performance. I just want to show the top sales by salesman. 

I tried doing if(rank(sum(sales), 3)=1, sum(sales)) but didn't grouped by salesman.

 

Thanks!

Femke
Contributor III
Contributor III

Did you try this: Sum(Aggr(max(Sales,Salesman)