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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
LucianH
New Member

Dynamic Row level security based on multiple columns

Hi everyone at the PowerBi Community, I have a very complex RLS situation. Whereby i have a fact table with these keys.

 

LucianH_1-1607623437734.png

The user key is not in the Fact table Only the OrgUnitKey, AreaKey, JobCardTypeKey. For simplicity the userkey will be in my bridge usertable and in my bridgeOrgAreaCard table. 

 

The problem I am facing is There are users that have access to only certain portions of data like in this instance user 317, has access to 3 Org Units and in this case should only see this data. The Area is tied to a specific OrgUnit and The JobCardType number can be tied to different OrgUnits. I can't choose one field to filter on here. because the User definately can't see all the data for the OrgUnits he has access to and the same way for the other 2 columns. So even if this User has Access to OrgUnit 2629 OrgUnit 2629 has many Areas and Many JobCards and he is to supposed to only see the access for that Areas and those job cards. 

 

Hope this makes sense. Appreciate any help with this 

 

Thanks

L

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @LucianH  ,

You can refer to the following blog, which can help you create dynamic RLS rules with different paths:

http://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi

 

There are also some related contents for your reference:

https://community.powerbi.com/t5/Desktop/Dynamic-Row-level-security-for-multiple-column-values/td-p/...

https://community.powerbi.com/t5/Desktop/Row-level-security-based-on-fields-from-multiple-tables/td-...

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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