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

rank expression

Hi everybody,

I need some help for a rank expression. I need to have a rank of my selected shop "D_ANNECY" for each field of my sector's hierarchy in my table.

Now I use this expression :

only({<[Comparatif Magasin]={'$(vMagasin_Analyse)'}>}Aggr(rank(Sum([CA HT k€ Maille])),[Comparatif Magasin]))

Romain1_0-1616433409618.png

It work's when I just select one value for each fields of my sector's hierarchy.

Romain1_1-1616433768987.png

When one of the fields are unselected, my expression doesn't work like I want. I don't know why.

I try this one (not good result) : only({<[Comparatif Magasin]={'$(vMagasin_Analyse)'}>}Aggr(rank(Sum([CA HT k€ Maille])),[Comparatif Magasin],Secteur,[Sous Secteur],Maille)) 

I need to have good results for my each rows of my column "RANK".

Could you give me some help ?

Sorry for my bad english.

Regards,

Romain

 

Labels (2)
0 Replies