Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Evrybody, i wanna create an index column in dax (not in power query) based on a number. Here's the result wanted.
Any help, please !
Solved! Go to Solution.
Hi, @Anonymous
Maybe you can try adding small random numbers for sorting.
Calculated column:
Column = 'Table'[Number]+RAND()/1000Rank1 = RANKX(ALL('Table'),'Table'[Column],,ASC,Dense)
Best Regards,
Community Support Team _ Eason
There's no magic formule that can helps me do that ?
Hi, @Anonymous
Maybe you can try adding small random numbers for sorting.
Calculated column:
Column = 'Table'[Number]+RAND()/1000Rank1 = RANKX(ALL('Table'),'Table'[Column],,ASC,Dense)
Best Regards,
Community Support Team _ Eason
I can't do that because my column doesn't only contains numbers. It contains text fileds too such as "A1000".
I converted that column to text and then i used the function concatenate and it's working.
Thank you so much everbody 🙂
Hi, @Anonymous
Usually we can use "Rankx" to create an index column if your column does not contain duplicate values.
Currently, It is almost impossible to create an index column based on a column containing duplicate values in DAX.
Best Regards,
Community Support Team _ Eason
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |