Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 62646

Help Setting up Dynamic RLS with Multiple Conditions

$
0
0

I'm hoping someone can possibly help and explain the proper way to set up RLS filters with 'multiple conditions'.  I've been trying to do this following the below info from Radacad, and not use 'Apply security filter in both directions'.

hXXps: // radacad . com/dynamic-row-level-security-with-profiles-and-users-in-power-bi

 

What I'm trying to do is based on the User email/login, to filter the users table. I then have 3 other tables that I would like to then also filter down based on user's permissions.

 

When logged in, I am trying to 1) filter and control what Regions or 'PropertyGroup', 2) Filter what Departments in those Regions they can see, and 3) What accounting/GL accounts they have the right to look at.


So in my sample, I have User 4. This users should have access to Region 4 and those properties in Region 4. They should then also be able to view only the 'Rooms' department of those particualar properties, and then also should only have access the Revenue accounts of those properties.

 

I've been struggle this the better part of day now, and finally time to try and learn and hope someone can take a look at help explain the proper steps.

 

EDIT.  I can't seem to attach a sample pbix file?  

I posted the sample pbix file here:   hXXps://drive.google.com/file/d/1eg-lPVOKGRZoH2-IaCjjkksSVuoXoQLc/view?usp=sharing

and the sample excel tables file if easier as well here: hXXps://docs.google.com/spreadsheets/d/1wYQatHfRi-_m5sNcgewNQDiU-ty4tOgr/edit?usp=sharing&ouid=103613584984100370152&rtpof=true&sd=true

 

I set the 'Manage Role' for [Email] = USERPRINCIPALNAME(). But then I get confused on how to actual filter the other tables based on the users table.  And below is the basic relationships.

 

ptmuldoon_0-1719521329952.png

 


Viewing all articles
Browse latest Browse all 62646

Trending Articles