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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Shresh
Frequent Visitor

RLS for Org Hierarchy with Multiple Managers

Current State

  • I currently have RLS implemented for the following scenario:
    Manager -> MD -> VP -> SVP -> C-Suite 
  • Each position has one or more work groups that report to them.
  • I have 3 types of tables:
    1. Emp Table that has emp details (emp num, mgr emp num, work email),
    2. a mapping table that maps emp num to Work Groups
    3. Detailed expenses divided by categories for each Workgroup i.e LTE has expense details for LTE Category for all workgroups and so on
      My model looks like:

Shresh_0-1690492730950.png

  • RLS implemented using path and path contains function:
    PATHCONTAINS(
    Emp_Hierarchy[Hierarchy],
    MAXX(
    FILTER(
    'Emp_Hierarchy',
    [work_email_address] = USERPRINCIPALNAME()
    ),
    Emp_Hierarchy[emp_nbr]
    )
    )
    Issue:

Shresh_4-1690494178262.png

I need emp 3 and 5 to see the same data that 6 can see even though they report to 6. Similarly, I need 8 to see the same data that 10 can see. 
How can i implement this?

1 REPLY 1
foodd
Super User
Super User

There is a great deal of thought out there on implementing RLS.  Would it not be simpler to leverage security groups, where a security group would always break a workgroup hierarchy tie you are running into?   Start with Soheil Bakhshi and then move over and read what Reza Rad has to say.   He did write an entire book on the topic.

  

Good Practice: Use Security Groups in Role Mapping Instead of User Accounts in Power BI Row Level Se...

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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