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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

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

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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