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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
akash0800-pbi1
New Member

RLS

Hi,

 

Need your assistance.

 

I currently have a RLS that restricts access for viewing employees information out of the base location. Typically the Leads can view details based on Team ID and base location.

And now I have a new requirement where I want to share the details of an employee who is out of the location (team id) but share a common work ID.

Example: an employee with X team ID and working on a different project out of his base location. So he has 2 work id's say it as A and B where represent the work ID of base location and B out side of base location.

 

Because of my current RLS the Lead M is not ablebto view the details of B and X employee.

 

I tried to create some intermediate tables which work id's and matching team codes. Here if I hard-coded the work ID the RLS is working but not sure how to make it dynamic. So that  when a Lead login userprincipalname() should be checked against the Work ID and display the Offshore employees along with base location else the normal RLS will work as is.

 

Can you please help me on this.

 

Thanks,

Akash

1 ACCEPTED SOLUTION

Hi,

 

I found a solution for this. What I actually did is that I added the column (Regional Manager) and added it in the existing role that filters users based on base location.

 

Thanks,

Akash

View solution in original post

3 REPLIES 3
v-yiruan-msft
Community Support
Community Support

Hi @akash0800-pbi1 ,

If I understand correctly, it seems that you are trying to display the data dynamically. You can refer the following links to get it:

Dynamic Row-level Security in Power BI (databear.com)

Dynamic Row Level Security with Power BI Made Simple - RADACAD

vyiruanmsft_0-1695620172749.png

If the above ones can't help you get the expected result, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples.It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

I will try to share more details. Please allow me some time.

Hi,

 

I found a solution for this. What I actually did is that I added the column (Regional Manager) and added it in the existing role that filters users based on base location.

 

Thanks,

Akash

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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