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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.