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

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

Reply
San_eve
Regular Visitor

Help with Rank

I have data simillar to below table. 

 

CategorypairValue
AB10
AC15
BD20
BA25

 

I need a rank column simillar ranking  as per category and value. Below O/p.

CategorypairValueRank
AB101
AC152
BD252
BA201

I have tried Rankx but I am not getting the expected o/p. Any help is appreciated. Thanks.

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this in a calculated column:

 

Column = RANKX(
    FILTER('Table','Table'[Category] = EARLIER('Table'[Category])),
    'Table'[Value],,ASC
)
 
DOLEARY85_0-1687504314987.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

2 REPLIES 2
San_eve
Regular Visitor

Works!!! Thanks a lot.

DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this in a calculated column:

 

Column = RANKX(
    FILTER('Table','Table'[Category] = EARLIER('Table'[Category])),
    'Table'[Value],,ASC
)
 
DOLEARY85_0-1687504314987.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
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