Forum Discussion
Saxon10
5 years agoPost Prodigy
Creating an Index Column for a Descriptive Data Using “DAX-Calculate column” in Power BI
Hi, I have a table Like this, Table1 ColA ColB
Orange Apple
Mango Not Apple
Mango Not Apple I want to create a column called as RowNumber using DAX and not Query Editor (M). So the Expect...
- 5 years ago
Saxon10 add this column
Rank = RANKX ( 'Table', [Col A] , ,ASC, Dense )you can change ASC to DESC if you want to reverse the row number.
Check my latest blog post Compare Budgeted Scenarios vs. Actuals to get a summary of my favourite Power BI feature releases in 2020
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡