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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
reynaldo_malave
Helper III
Helper III

RLS with same level view for regions

Hi guys, 

 

I have this problem for a couple of days now but I can´t figure it out. Here is the thing. I have many counties with stores in it each store has a supervisor. I have rls setup where each supervisors can see his/her stores. I have been asked to level up security parameters by county where a supervisor can see his/her stores and also other stores in the same county. I show you a picture of the schema 

 

reynaldo_malave_0-1605276966394.png

Supervisor filters stores and stores filters county.I would like suprvisors to filter county.  My main issue is how to pass multiple ids to county. Since one supervisor can have stores in many counties. Any ideas or suggested post?

 

Here is a sample file https://drive.google.com/file/d/1SC0vDiZguIxVZ1aiCSqXbNyVKQtC_7Y7/view?usp=sharing

 

Thanks,

 

Rey

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @reynaldo_malave ,

 

Create a new "supervisor-county" table and create a one to many relationship with the county table. Then create a dynamic RLS in desktop.

After defining the RLS, you need to republish the report and assign RLS in the service

Refer to:https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple 

 

Best Regards,
Liang
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

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @reynaldo_malave ,

 

Create a new "supervisor-county" table and create a one to many relationship with the county table. Then create a dynamic RLS in desktop.

After defining the RLS, you need to republish the report and assign RLS in the service

Refer to:https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple 

 

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

Hi @V-lianl-msft ,

 

Thanks for taking the time. I already research radacad. My problem is different or maybe I am just not seeing it. I did prepare a samkple file if you can check it out i´d appreciated. I was trying to do something with pathcontains but it works with hierarchy and I am looking to do cross security depending on which supervisor have stores in the county.

 

 https://drive.google.com/file/d/1SC0vDiZguIxVZ1aiCSqXbNyVKQtC_7Y7/view?usp=sharing

 

Thanks, 

 

Rey

Hi @reynaldo_malave ,

 

Unfortunately, I don't have access to the sample file.

In this forum, this thread appears solved.

https://community.powerbi.com/t5/Translated-Spanish-Desktop/RLS-con-la-misma-vista-de-nivel-para-las... 

If the problem persists,could you share the sample pbix again?

Please remove any sensitive data before uploading.

 

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

hi @V-lianl-msft 

 

I did solve it with your advice. I don´t know why its duplicacted in spanish. I will accept your solution here as well.

 

Thanks,

 

Reynaldo

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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