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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

RLS to show emp data for herself and all her direct/indirect reportees & all emp with same groups

There is one employee table, sales table and department table.

employee table

VeenaAnalyst_0-1712081685526.png

sales : 

VeenaAnalyst_1-1712081713460.png

Department table:

VeenaAnalyst_4-1712082266089.png

 

if Ana Logged in the report ,Ana should see data for herself and all her direct and indirect reportees : Ana , Chris, Susan

Also Ana should see data for all the employees who is having same department here (dept3): Nick ,Robert

Expected output is:

VeenaAnalyst_3-1712082090230.png

Immediate help would be appreciated.

@Chakravarthy : You helped me in similar issue earlier. Could you please provide an idea on this as well.

Using RLS employee should see data for his organizational group as well as all his reportees data 

 

4 REPLIES 4
Anonymous
Not applicable

I changed my table and applied few steps to achieve RLS for direct and indirect reportees and it worked. Below is the table structure.

VeenaAnalyst_0-1712163633705.png

1.If Leia Organa logs in the system she will see data for direct reportees Kylo Ren and Darth Maul and indirect reportees Ana.

VeenaAnalyst_1-1712163746387.png

2.Now 2nd requirement is Leia Oragana should see data for all records having similar department i.e Dept 3

So It will include Obi-wan .

3.3rd requirement there is another table department where the employees are not enterd in Manager table , but since they belong to some department ,employees from Manager table should see related department data from department table. Robert will be included.

Final output should be 

VeenaAnalyst_2-1712163879453.png

Highlighted in Green belongs to dept 3. Can any one help me on this

Anonymous
Not applicable

Hi @Anonymous ,

Can you explain how you determined that Chris, Susan and Ana were directly or indirectly connected? I can't understand what the conditions for the determination are based only on this screenshot you provided.

vjunyantmsft_0-1712108531841.png

Also, where did this number 5 in your desired outcome come from?

vjunyantmsft_1-1712108608525.png


Best Regards,
Dino Tao

Anonymous
Not applicable

@Anonymous , My bad!. Below is the expected output. Instead of 5 it is 4.

Susan reports to Chris and Chris reports to Ana. So they are direct and indirect reportees

VeenaAnalyst_2-1712122956266.png

Requirement :

When Ana Logged in the report ,Ana should see data for herself and all her direct and indirect reportees : Ana , Chris, Susan

Also Ana should see data for all the employees who is having same department here (dept3): Nick ,Robert

 

 

 

Anonymous
Not applicable

Hi @Anonymous ,

I think you need to add a new table to mark who has direct or indirect connections with whom. Just based on the three tables you provided before, you can't achieve that Ana can see the data of Chris, Susan.

Best Regards,
Dino Tao

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.