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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.