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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mikolaj
Regular Visitor

Dynamic row number in PowerBi table

Hello,

I have few tables with  sales values but with different number of rows. In each table i want to have first column with ordinal number (1, 2, 3, ..., n) wich will be immune for any type of sorting, but will change whe filtering rows. Any ideas hot to do it?, like on the screen below:

2018-02-22_10h33_54.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mikołaj

1 ACCEPTED SOLUTION
rajulshah
Resident Rockstar
Resident Rockstar

Hello @mikolaj,

 

You can try giving row number by giving rank to them. You can give rank according to sales value or customer name.

I may be assuming something wrong but I guess the following is what you need.

rank.gif

Let me know this is not what you want.

 

Regards.

View solution in original post

5 REPLIES 5
rajulshah
Resident Rockstar
Resident Rockstar

Hello @mikolaj,

 

You can try giving row number by giving rank to them. You can give rank according to sales value or customer name.

I may be assuming something wrong but I guess the following is what you need.

rank.gif

Let me know this is not what you want.

 

Regards.

I think this will solve my problems, I'll try. Thank you 🙂

I can't see how this can work, given the requirement to change the sort order and still have a row number.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
MattAllington
Community Champion
Community Champion

May I ask why?  Is it just so you can refer to line numbers for commentary purposes?  I don’t think you can do it in a standard visual. A long shot might be a custom visual. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Client wanted this solutions. There's hundreds of rows in tables and he doesn't want to count manually to see on which positions is seller or something like this after sorting (maybe I shoul call it Rank or something to be more precise). 

Custom visual are undesirable, it's going to be PowerBi embedded and it has to work flawlessly

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors