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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

RANKX not working as intended

Hi all,

 

Trying to create a simple ranking based on Gross Profit (Measure) Sadly couldn't get it working. Tried using Gross Pay (Column) pretty much the same result. If i remove the empName from the ALL SELECTED line then it will show some kind of ranking but not in order 1-2-3-4 etc it will show 1-8-24 etc. Any help or guidance would be apprciated, already read through a few posts and watched the video below

 

rankx.png

 
 
 
 

https://www.youtube.com/watch?v=Anv3X3EuHZ8

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

The title of the column is Employee Name but you are referring to EmpName in your formula.  Could that be the reason?  Also, ensure that you write this as a measure (not a calculated column formula).


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Measure = RANKX(ALL(Test),CALCULATE(SUM(Test[GrossPay])))

@Anonymous

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.

Top Solution Authors