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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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