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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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, @Anonymous 

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors