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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.