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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
PoetryinMotion1
Regular Visitor

Ranking while using RLS

Hey all, bit of a tricky one for me today.

 

I have two tables, a username/email table with unique records and a fact table; the user table filters the fact table.

I have a role in my report that limits fact table visibility based on username sign-in, and another role that allows full access without RLS.

 

My issues are the following:

1) On both roles, when a user is selected in a slicer coming from the fact table, I want to rank where they sit in comparison to all other users on the Fact Table based on the sum of column x. This is fine for the 'Full Access' role, but when I apply RLS, the rank is always #1 given that they're the only user in the table.

 

2) Similar to the first issue, I have an additional ranking I'd like to apply as follows: Some users share a value in their 'Department ID' column of the Fact Table. I'd like to rank how the selected user (either forcibly or voluntarily depending on the Role) stacks up to other users within their same Department ID. Again, I'm able to do this for the 'All Access' role without any issues, but can't seem to get the same logic when RLS is applied.

Thank you!

1 ACCEPTED SOLUTION

Yes, you create a duplicate of your fact table that is not impacted by RLS and has all identifiable/sensitive information removed/summarized away.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

What's the actual issue?  This is how RLS works.  You can't have your cake and eat it too.

I'd just like to know if there's a way to achieve the desired result of ranking for all, maybe by duplicating the fact table? I understand that's how RLS works 🙂

Yes, you create a duplicate of your fact table that is not impacted by RLS and has all identifiable/sensitive information removed/summarized away.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.