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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Rank Not Working in RLS Security

hello everyone

 

my rank works perfect as Admin & as CEO, but if I use RLS Security to filter a region rank does not work, the rank back to number 1.

 

I use this DAX

Rank = RANKX(ALL('table'),[measure sum])-1
-1 for rank start from 1 (not from 0)
3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Rank Start from 1 only , Try like

Rank = RANKX(ALL('table'),[measure sum])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

thank you for your information

 

can you help me to solve this problem? "my rank works perfect as Admin & as CEO, but if I use RLS Security to filter a region rank does not work, the rank back to number 1."

Anonymous
Not applicable

Hi @Anonymous ,

 

See if helps:

How to Hack RLS to Make RANK() Work on Entire Dataset

Solved: making rank work after applying rls security

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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