Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
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
tresB
Champion III
Champion III

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
tresB
Champion III
Champion III

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. 

tresB
Champion III
Champion III

Corrected. (in red).

sanpor1zd
Contributor II
Contributor II
Author

thank you !

Cheers