Skip to main content
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

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