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
beatriz_verol
New Member

RLS with different levels of filters

I have a dashboard with three different levels of filters, such as: country, state and city, on each page.
I have a RLS setup with users for managers from cities, states and countries. A country manager should be able to see all information about his country, including the detailed information of states and cities. A city manager should see all details from his city, but also the “macro” data from his state and country, not being able to filter by any other city than his own. I’m failing on this step: on the city managers view, he can only see the "global" results (aka no filter) or his city´s.

All of my tables have city, state and country columns. It is possible to create a RLS setup with leveled permissions?

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @beatriz_verol ,

 

What is this "globalresults in your table?

If it's the sum value of states and cities for corresponding country, you could consider to create a calculated column to get the value.

As below, If the table is filtered by city, the user still could see the global result for the country.

1.PNG

If I misunderstood your meaning, please share more details.

 

Best Regards,

Jay

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

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @beatriz_verol ,

 

What is this "globalresults in your table?

If it's the sum value of states and cities for corresponding country, you could consider to create a calculated column to get the value.

As below, If the table is filtered by city, the user still could see the global result for the country.

1.PNG

If I misunderstood your meaning, please share more details.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
littlemojopuppy
Community Champion
Community Champion

Hi @beatriz_verol 

I'm not really a fan of the solution I'm proposing, but maybe you could create a second table that summarizes the "global" macro data to satisfy the requirement.  I really don't like the idea of creating additional tables, but because of RLS I don't really see another workaround.  Hope this helps!

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.