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

Row number as index column for table created with DAX command

Halllo,
I have a table that I created with a DAX command. I now need a column with the row number (simply 1,2,3...). I cannot create this column with power query, because the table does not appear in the power query.

I have now found a hint that this is not possible.
Is this correct?
Thanks for hints
Friedbert

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

you can export the table to excel and re-import it to power query. But it won't update dynamically. In case you have new data that should affect this table then you need to repeat  this all over again. 
If this table contains a unique column like date for example then you can create a ranking column using DAX which will act as a unique index for each row. 

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Anonymous 

you can export the table to excel and re-import it to power query. But it won't update dynamically. In case you have new data that should affect this table then you need to repeat  this all over again. 
If this table contains a unique column like date for example then you can create a ranking column using DAX which will act as a unique index for each row. 

Anonymous
Not applicable

Hi @tamerj1 

thanks for the hit. Workaround with unique column  works.

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.