Forum Discussion

youconnect's avatar
youconnect
Icon for Helper I rankHelper I
6 years ago

Ranking ignoring Market(category)

Hi,

I have this DAX 

RANKX(ALL(users_table;CALCULATE(SUM(sales_table_sales);;DESC)

And my output is:
idUserSalesRank
56100001
5590002
21450003
5945004
87426005
6820006
96519007
5718008
6315009
54100010

But if I add the Market to the visual table the result is this:
idUserSalesMarketRankRank Expected
5610000alpha11
559000beta12
2145000zeta13
594500zeta24
8742600beta25
682000alpha26
9651900alpha37
571800beta38
631500zeta39
541000alpha410

Can you help me?
Thanks in advance.

6 Replies