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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
pgarcia75
Contributor III
Contributor III

Need Help with aggr function

Hi all

I need help on the function aggr

The expression "max (Aggr (count ([Type_Incident]), [Type_Incident]))" returns the maximum number of count([Type_Incident])

of the dimension [Type_Incident]

.

I would now find the [type_Incident], which corresponds to the max max (Aggr (count ([Type_Incident]), [Type_Incident]))?

Thank you for your help

P

1 Solution

Accepted Solutions
pat_agen
Specialist
Specialist

hi,

try something like this

=only(if(aggr(rank(count (Type_incident)),Type_incident)=1,Type_incident))

View solution in original post

2 Replies
pat_agen
Specialist
Specialist

hi,

try something like this

=only(if(aggr(rank(count (Type_incident)),Type_incident)=1,Type_incident))

pgarcia75
Contributor III
Contributor III
Author

Thanks, it's working

P