Forum Discussion

Ramachandran's avatar
Ramachandran
Icon for Helper III rankHelper III
4 years ago
Solved

How to get Rank value in multiple column combination?

Hi, Someone assist me, how do I get Ranking for multiple columns combination. for example, I have Country, Product and Sales amount columns are available in dataset.
I tried the below code and its not working
Ranking = RANKX(ALL('SalesData'[Country]), [SalesAmt])
for your reference, source data is below

I want to output like


How to change this code
Ranking = RANKX(ALL('SalesData'[Country]), [SalesAmt])

regards,
Ram