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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Aydeedglz
Helper V
Helper V

Index column in DAX

Hi, I am trying to add a index column to a calculated table, the index is just a count a of rows, I don't want to sort. I just want to star with 1 until the last row of my report. 

 

Thanks

3 REPLIES 3
Aydeedglz
Helper V
Helper V

Hi, I can't do that becuase is a calculated table. It is not possible to use Power Query, that is why I need it in DAX

Fairly recently, a DAX function called ROWNUMBER was added to Power BI.

https://learn.microsoft.com/en-us/dax/rownumber-function-dax

 

I think that should do the trick.

Dangar332
Super User
Super User

Hi, @Aydeedglz 

go to power query editor>choose your table in which you want to add index>go to add column section>click on index column>close & apply

Dangar332_0-1699476028931.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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