cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Prakash04
New Member

Dynamics RLS

Hello Experts,

 

I have a requirement as when my manager logs into the Power BI report then he would like to see only the direct people reporting to him.

 

How can we achieve this scenario?

 

Below is the list of employees in the group.

 

Prakash04_0-1659722721197.png

If Sam logs in then he would like to see all the resources reporting to him as given below for reference.

 

Prakash04_1-1659722735971.png

 

Could you please share me link/youtube videos for reference?

 

Thank you in advance!

 

Regards,

Prakash 

1 ACCEPTED SOLUTION
marcelsmaglhaes
Resolver V
Resolver V

Hey @Prakash04 ,

 

 First of all, you need create a new table with the data of the managers (name, id, email). After that, you should related the Manager with the table Emp (that have the data about employees). I use the name of the manager on the Manager table and related with the Reporting in the Emp table.

Then you create your dinamic RLS. Check the images. 😃

 

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

 

Kind Regards,
Marcel Magalhães

marcelsmaglhaes_1-1659731212681.png

Content of Manager table (the email field will be the key to the dinamic RLS)

marcelsmaglhaes_2-1659731238244.png

Create the RLS on tab Manager on field 'email'

marcelsmaglhaes_3-1659731328236.png

 

Applying  the test (pay attention in the visual. All people are list)

marcelsmaglhaes_4-1659731399536.png

Just viewing the SAM team

marcelsmaglhaes_5-1659731470227.png

 

 

 

 

 

View solution in original post

2 REPLIES 2
marcelsmaglhaes
Resolver V
Resolver V

Hey @Prakash04 ,

 

 First of all, you need create a new table with the data of the managers (name, id, email). After that, you should related the Manager with the table Emp (that have the data about employees). I use the name of the manager on the Manager table and related with the Reporting in the Emp table.

Then you create your dinamic RLS. Check the images. 😃

 

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

 

Kind Regards,
Marcel Magalhães

marcelsmaglhaes_1-1659731212681.png

Content of Manager table (the email field will be the key to the dinamic RLS)

marcelsmaglhaes_2-1659731238244.png

Create the RLS on tab Manager on field 'email'

marcelsmaglhaes_3-1659731328236.png

 

Applying  the test (pay attention in the visual. All people are list)

marcelsmaglhaes_4-1659731399536.png

Just viewing the SAM team

marcelsmaglhaes_5-1659731470227.png

 

 

 

 

 

nvprasad
Solution Sage
Solution Sage

Hi,

 

You can do this by preparing data which supports your need. You should have table with Employee Name and their direct reporting employees (1st level managers) and use this table for RLS .

 

I have done similar to this 2020. So data preparation is key here.

 

Appreciate a Kudos! ‌‌
If this helps and resolves the issue, please mark it as a Solution! ‌‌

Regards,
N V Durga Prasad

Helpful resources

Announcements
T-Shirt Design Challenge 2023

Power BI T-Shirt Design Challenge 2023

Submit your creative T-shirt design ideas starting March 7 through March 21, 2023.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors