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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
User2023_2023
New Member

Dynamic row number_rank for part of a column

Hello, i am a new Power BI user.

Have RANK for GROUP # 2, but for GROUP #1 need to get dynamic ranking / row number, which will be contnuos strarting from 1 even if a filter was applied (e.g. USER).

Would gretaly appreciate your help!POWER_BI_question.png

1 REPLY 1
amitchandak
Super User
Super User

@User2023_2023 , I am not seeing any measure in visual, do you need the row number for use?

if yes then use a measure count and rownumber released in April 2023

 

Rankx is old function rank and rownumber are new one

 

count = countrows(Table)

 

New Row Number = ROWNUMBER( ALLSELECTED(Table[User]),ORDERBY([Net],DESC),PARTITIONBY (Table[Group]))

Rank Old Dense = rankx(ALLSELECTED('Table'[User]), [Your Measure],,DESC,Dense)

New Rank Desne = rank(DENSE,ALLSELECTED(Sales[Order No]),ORDERBY([Net],DESC),PARTITIONBY(Table[Group]))

 

Column rank cannot be dynamic , in case you are creating one

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.