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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Multi level RLS suggestions

Hi,

 

Sorry if this is posted, but I can't seem to find exactly what I'm looking for. 

I have a employee table, company table and a department table. 

Som employees need to see the whole of their company, while others can only see their department in their company. 

Can anyone suggest to me articles that solves this exact issue?

 

Thank you so much!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , In such a case we create an employee email(login), department. those employees need to see all depart will be assigned and have an entry for each department for those employees and then you join that with department dimension and create a role on rls table

 

email = userprincipalname()

 

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Here are related operations and videos about dynamic RLS, I hope it will help you:

https://www.acuitytraining.co.uk/news-tips/dynamic-row-level-security-in-power-bi/

https://www.youtube.com/watch?v=u-vTMUZwilE

https://www.biconnector.com/blog/power-bi-steps-to-setup-rls-row-level-security-static-and-dynamic/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.

amitchandak
Super User
Super User

@Anonymous , In such a case we create an employee email(login), department. those employees need to see all depart will be assigned and have an entry for each department for those employees and then you join that with department dimension and create a role on rls table

 

email = userprincipalname()

 

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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