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: 
sanpor1zd
Contributor II
Contributor II

Showing max count in a table.

Hi guys,

i have a table with employee's name, and their sales transaction. 

pic1.JPG

im trying to show only employee with the most number of sales.

pic 2.JPG

so in this case, i just want to show Alex with a count of 9 sales. 

may i know the way of doing this

thank you.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Dimension: Employee

Exp : Count({<Employee={"=Count(Sales)= Max(total Aggr(Count(Sales), Employee))"}>} Sales)

 

I am not sure if I have over-complicated the expression.

View solution in original post

4 Replies
tresesco
MVP
MVP

Dimension: Employee

Exp : Count({<Employee={"=Count(Sales)= Max(total Aggr(Count(Sales), Employee))"}>} Sales)

 

I am not sure if I have over-complicated the expression.

sanpor1zd
Contributor II
Contributor II
Author

Hi Tresesco,

there is an error in the expression youve given. 

tresesco
MVP
MVP

Corrected. (in red).

sanpor1zd
Contributor II
Contributor II
Author

thank you !

Cheers