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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Kushalappa_BE
Frequent Visitor

RANKX

Hello All! 
I was Just Trying out Rankx fx.
I noticed that the function works fine if a measure is given as the argument for expression but, fails to work as per expectation when the aggregation of a column is passed as an expression.
(e.g., Context is Derive Rank based on Salary of Employees  if, we pass a measure "total salary" which is nothing but sum of existing column salary the function returns the expected output however, if we pass sum of salary instead of measure the rankx fails) 
I assume in case of passing aggregated column, it takes into account the total and returns a single rank but it works fine with measures and this is what I am not able to understand. 
Any explaination on this ?  

1 REPLY 1
FreemanZ
Super User
Super User

hi @Kushalappa_BE 

a measure is always surrounded by a CALCULATE implicitely, so try to replace it with CALCULATE(SUM(Table[Column]))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.