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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

RLS for Multiple Dimension Tables

We set up dynamic RLS using a security view (WC_SECURITY_G_VW) that has employee info (including UPN) and the projects that the employee is assigned to. We then  join this to the Project Attributes table and tie it into our fact table (Cost Data). For the RLS setup, we set the upn field from WC_SECURITY_G_VW = USERPRINCIPLENAME() and it works great. However, when people look at data from one of the dimension tables, they see all the data and it's only restricted once they pull in something from the fact table. What we want to happen is that when someone pulls down data from one one of the dimension tables (Task Code for example), they only get the tasks that the user has access to based on WC_SECURITY_G_VW. I first tried doing bidrectional relationships from the other dimension tables to the fact table but you can't do that on every dimension table. So I'm guessing I'll have to add some DAX for the RLS setup on each dimension tables. I've tried different DAX but so far haven't got it to work how I want. Any help would be appreciated. A screenshot of the model is below.

 

blakeeno123_1-1680633870417.png

 

1 REPLY 1
olgad
Super User
Super User

Hi, I am writing a series of several blogs now on RLS, do you think you can you ping me your report in private messages i will take a look and give you a suggestion. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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