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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors