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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors