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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.