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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

return the most frequent asset

Hi all,

I have a table like the one below that counts the number of times an asset appears and then sorts highest to lowest.

I have a formula that goes in a text box =Max ( aggr ( count ( Equipment_Id ),Equipment_Id  ) ) that returns the 699 as you would expect. what im after is to return the actual Equipment ID.

thanks all

1 Solution

Accepted Solutions
Kushal_Chawda

Try,

Firstsortedvalue( Equipment_Id, -aggr ( count ( Equipment_Id ),Equipment_Id  ))

View solution in original post

4 Replies
Kushal_Chawda

Try,

Firstsortedvalue( Equipment_Id, -aggr ( count ( Equipment_Id ),Equipment_Id  ))

samuel_brierley
Creator
Creator
Author

Thanks for the quick reply, I thought it would be something like that however couldn't quite figure the syntax.

maxgro
MVP
MVP

it seems the formula works

1.png

Kushal_Chawda

I had modified the syntax

Firstsortedvalue( Equipment_Id, -aggr ( count ( Equipment_Id ),Equipment_Id  ))