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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors