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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Show Row dynamic number in a table

Hi all.

 

I have a doubt, I would like to show in a table a secuencial number like this:

ruz_lee_0-1611072061532.png

In this case, it cannot be repeated, they always have to go up from 1 to X.
Any suggestion?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , you might have to create rank and display

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

 

Or in your table, you can add an index column (This will be for the table)

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Step1, Add an index column in Power Query.

Step2, Create a measure.

Measure = 
RANKX(
    ALLSELECTED('Table'),
    CALCULATE( MAX([Index]) ),
    , ASC, Dense
)

Then you can get the dynamic number of the row.

v-lionel-msft_0-1611215495106.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Anonymous , you might have to create rank and display

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

 

Or in your table, you can add an index column (This will be for the table)

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi, thanks for your answer, finally I used this method that you indicated => https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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