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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.