Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sat_tok52
Creator
Creator

Rank and Over All Rank

Hi All,

I have to display Over all rank column beside my rank column,suppose When user selected a filter the rank column display ranks based on the selection it is working fine for me ,but i have to show over all rank  need to be a display like below.

Before Filter Selection:

ZoneEmp NameRank Over All Rank
EastA11
WestB22
EastC33
SouthE44
NorthF55

 

After Filter Selection(If user selected east zone)

ZoneEmp NameRankOver All Rank
EastA11
EastC23

 

I written logic like below it's not working.

Aggr(Rank(Total Sum(Sales)))

 

Any help...

 

Thanks.

 

Labels (1)
3 Replies
Kushal_Chawda

try this expression

Overall rank

=rank(total sum({<Zone>}Sales),0,4)*avg(1)

for rank

rank(total sum(Sales),0,4)*avg(1)

Note:  Please check 'Suppress zero value' for expression.

Taoufiq_Zarra

for Rank

=Rank(total sum(Sales))

for Over All Rank

AGGR( RANK(total sum({1}Sales)),Zone,[Emp Name]) 

 

output:

Sans titre.png

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Kushal_Chawda

it's better to define field for which we need to exclude selection instead of using {1}otherwise it will not consider selections of field which is mandatory like period selection