cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GG_PBI
Helper I
Helper I

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
v-jayw-msft
Community Support
Community Support

Hi @GG_PBI ,

 

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.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
GG_PBI
Helper I
Helper I

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

v-jayw-msft
Community Support
Community Support

Hi @GG_PBI ,

 

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.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors
Top Kudoed Authors