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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-yaningy-msft
Community Support
Community Support

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
v-yaningy-msft
Community Support
Community Support

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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