Forum Discussion

sshokri89's avatar
sshokri89
Icon for Helper I rankHelper I
4 years ago
Solved

RANKING based on two columns - Group & Subgroup

Hi all,

 

I need to create a ranking in a specific manner; below is a sample data:

 

 

 

I have created GROUP as a calculated column using below measure:

Group = "Dealer " & RANKX(ALL(TABLE),TABLE[National Group],,ASC,Dense)

now I need to create another Calculated column but that needs to follow GROUP. In other words, I need to RANK each row based on their TOTAL value. for example, first row > total: 1 is the lowest amongst 4 rows. So I want to rank it as 1.4. Then second row is highest of all for DEALER 1 so it's my 1.1. The same logic is applied for all.
 
Thanks all for your help in advance 🙂

2 Replies