Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
profilewatercli
Regular Visitor

Create row id in a custom table

I have a custom table and custom column as below.

profilewatercli_0-1713425128938.png

profilewatercli_1-1713425147868.png

The following column is what im want the output to be

profilewatercli_2-1713425224035.png


how do i use dax to do this?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @profilewatercli 

Thanks for @PowerBigginer help. If you want to create a Index column by DAX, you can refer to following method.

vyaningymsft_0-1713489550499.png

DAX:

Index = RANKX(ALL('Table'), 'Table'[Exam Session], , DESC, Dense)

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @profilewatercli 

Thanks for @PowerBigginer help. If you want to create a Index column by DAX, you can refer to following method.

vyaningymsft_0-1713489550499.png

DAX:

Index = RANKX(ALL('Table'), 'Table'[Exam Session], , DESC, Dense)

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

PowerBigginer
Helper II
Helper II

Go to Power query (Right click on the table click Edit Option) then add Index column 

PowerBigginer_0-1713427606306.png

For more Power BI tips and Tricks 
https://powertipstricks.blogspot.com/ check out the blog
If this post helps Please Mark as a solution

Is there a way to do this using dax?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.