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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

RankX() function not available when creating a new calculated column with variable

Hi Daer Community,

 

I am trying to rank a column based on its count in anothercolumn. But the rankx() function is not available there.

Top5 cases & Others =
Var RankProductsByCaseCount = rankx() - it says "rankx() is not a function" .
 
Any tips why?
 
Thank you!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Which connection mode you are using?

RANKX() function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

 

Best Regards,

Jay.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you for your reply. Yes, I am using Direct query connection mode.

Anonymous
Not applicable

Hi @Anonymous ,

 

Which connection mode you are using?

RANKX() function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

 

Best Regards,

Jay.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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