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: 
Not applicable

Rank function problem

Hi,

i have this situation, top 10 agencies with decrescent value:

imae.png

I need to have for every agency the max value Area.

How can i do?

I have two dimension:

Agency as calculated dimension  = "if(aggr(rank(sum(Value)),[AGENCY NAME])<=10,[AGENCY NAME]) "

and Area as normal dimension.

Thanks a lot

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try FirstSortedValue(Area, -aggr(sum(Value), Agency, Area)) as expression to return the Area and max(aggr(sum(Value),Agency,Area)) as expression for the maximum sum of value.


talk is cheap, supply exceeds demand