Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

DAX query to create index based on two column

 

Need some DAX code to build a new Index column, as the screenshot is shown, I need to use the column "A" and "B' to build the new one column(Index).

 

Thanks in advance for your help.

 

ABIndex
1ABC1
1DEF2
1DEF2
2ABC3
2DEF4
2DEF4
2WEF5

 

 

 

  • Hi Anonymous ,

     

    Try this new column:

     

    Index = RANKX('Table', [A] & [B],, ASC,Dense)
     

2 Replies