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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
AnkitaaMishra
Super User
Super User

Help Needed: Adding Dynamic Sr. No. Column in Power BI Table Visual

Hi All,

I’m trying to add a Sr. No. (Serial Number) column to a table visual in Power BI that updates dynamically based on user-applied filters.

Could you please suggest how this can be achieved?

1 ACCEPTED SOLUTION
v-venuppu
Community Support
Community Support

Hi @AnkitaaMishra ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @pankajnamekar25 for the prompt response.

I have created PBIX file by using sample data, please go through the attached PBIX file.Hope this helps..!!

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

View solution in original post

3 REPLIES 3
v-venuppu
Community Support
Community Support

Hi @AnkitaaMishra ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @pankajnamekar25 for the prompt response.

I have created PBIX file by using sample data, please go through the attached PBIX file.Hope this helps..!!

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

pankajnamekar25
Super User
Super User

Hello @AnkitaaMishra 

 

Try this DAX measure

Sr No =

RANKX(

    ALLSELECTED('YourTableName'),

    SELECTEDVALUE('YourTableName'[SomeColumnToSortBy]),

    ,

    ASC,

    DENSE

)

 

 

 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Thanks for your response. I had already tried the ChatGPT solution, but unfortunately, it doesn’t seem to be working in my case.

Would appreciate if you could suggest any alternate approach.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.