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! Learn more

Reply
tas6959
New Member

Adding Row Numbers to a Table

What is the easiest way to add row numbers to table.  Indexed table column would not work as the data is being filtered and the table will only will be showing the top 10 items regardless of the filters selected.  Basically I need a column that shows rows one thru ten at all times.

2 ACCEPTED SOLUTIONS
AlexisOlson
Super User
Super User

It sounds like you want RANK or ROWNUMBER.

View solution in original post

Anonymous
Not applicable

Hi @tas6959 

If you want to add dynamic row numbers in table, it cannot implement,  because the data is static, you can't dynamically change the row ID based on the table filter. If you want to dynamically display row IDs, you can consider using the table visual and use  the rankx() function in measure.

You can refer to the following link.

Creating Dynamic Ranking Tables Using RANKX In Power BI | Enterprise DNA

DYNAMIC RANKX BY SLICER SELECTION IN POWER BI - Ruki's Blog (rukiatu.com)

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @tas6959 

If you want to add dynamic row numbers in table, it cannot implement,  because the data is static, you can't dynamically change the row ID based on the table filter. If you want to dynamically display row IDs, you can consider using the table visual and use  the rankx() function in measure.

You can refer to the following link.

Creating Dynamic Ranking Tables Using RANKX In Power BI | Enterprise DNA

DYNAMIC RANKX BY SLICER SELECTION IN POWER BI - Ruki's Blog (rukiatu.com)

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

AlexisOlson
Super User
Super User

It sounds like you want RANK or ROWNUMBER.

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.

Top Solution Authors