Forum Discussion

Dunner2020's avatar
Dunner2020
Post Prodigy
5 years ago
Solved

Rankx based on table column

Hi there,

 

I have data which looks like the following:

 

IDNo of Customer
AX1681081
FH53081046
CH2008551
FK77841336
WK27521456
QT5202390
AT7642525
AB4543
AT7692347
WK2755620
AX162607
CM822725
PC3500
EK480461
OT2305
ET5635
CH2006842
LF6576198
MG6443

 

Now I want to create a measure which ranks based on the number of customers column. I wrote a code something like that:

 

Rank by Customer = RankX(ALL(Table),Table['No of Customer'],,DESC)

 

I know that Table['No of Customer'] is the wrong argument and it should be replaced by expression. However, did not know what the replacement should be? Could anyone help me in that?

 

4 Replies