Forum Discussion
Creating calculated index column in DAX
- 7 years ago
hi, mrothschild
It's pleasant that your problem has been solved, and share your solution.
Usually, create an "Index" column in dax is the same logic as yours.
And it needs a unique column(eg. UniqueId), otherwise, for the same row will have the same index number.
You could also try to add multiple group rank column by different level then add then index column by the conditional
level1*1000+level2*100+level3*10...
It is like the way as you created a column called UniqueID:
UniqueID = FORMAT(VALUE(Table[Number]),"00#") & " - " & Table[Asset ID] & " - " & FORMAT(Table[Period],"000#")
And please close the topic and mark the relevant post as an answer. Thank you

Best Regards,
Lin
hi, mrothschild
It's pleasant that your problem has been solved, and share your solution.
Usually, create an "Index" column in dax is the same logic as yours.
And it needs a unique column(eg. UniqueId), otherwise, for the same row will have the same index number.
You could also try to add multiple group rank column by different level then add then index column by the conditional
level1*1000+level2*100+level3*10...
It is like the way as you created a column called UniqueID:
UniqueID = FORMAT(VALUE(Table[Number]),"00#") & " - " & Table[Asset ID] & " - " & FORMAT(Table[Period],"000#")
And please close the topic and mark the relevant post as an answer. Thank you ![]()
Best Regards,
Lin