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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.