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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Dynamic Row Level Security based on Hierarchies

Hi,

 

I'm in need for help with setting up Dynamic Row Level Security, based on USERPRINCIPALNAME, but with a hierarchy structure in place as well.

 

Case is as follows: I'm working on a fixed costs dashboard for our organization with fact data on different hierarchy levels: Business Group / Region / Company Code / Cost Center. Because of the sensitivity of the numbers it's not possible to share the entire report with all the potential report users. Hence the need to apply Row Level Security. Some users should only see a few company codes or cost centers, others are allowed to view an entire BG, or only a specific region. Some users are even allowed to see all the data.

 

This RLS complexity causes my issue. In more "simple" reports I'm managing RLS using a separate excel file in which I would list the users, the company codes and the combination of both which basically indicates which user is allowed to view something and is maintainted on the lowest level. An example of how that's applied you'll see in attached sample pbix file on https://we.tl/t-oB8tCRgypi or below screenshots:

 

RLS_role.PNGRLS_sample.PNG

 

Managing this however with hundreds of company codes and even thousands of cost centers is not maintainable.

 

What I would need is to know how to set-up certain hierarchies that I can assign to users. So for example when I assign a user the EUROPE role this user can see all companies that belong to region Europe. Or role MATERIALS would assign all Materials company codes to that user. Furthermore a combination of both should be possible (i.e. Materials but only for Europe company codes. I also need to have the possibility to assign individual company codes to users.

 

Company mapping.PNG

Any help would be very much appreciated!

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

For Dynamic Row Level Security with Hierarchy case, you may refer to these blog:

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

https://radacad.com/dynamic-row-level-security-in-power-bi-with-organizational-hierarchy-and-multiple-positions-in-many-to-many-relationship-part-1

https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies

 

Please understand that these links are provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 

Best Regards,

Lin

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

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

For Dynamic Row Level Security with Hierarchy case, you may refer to these blog:

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

https://radacad.com/dynamic-row-level-security-in-power-bi-with-organizational-hierarchy-and-multiple-positions-in-many-to-many-relationship-part-1

https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies

 

Please understand that these links are provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 

Best Regards,

Lin

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.