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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply

How to setup RLS to treat Assistant managers as mangers for only a single visual?

I have a dataset setup and running which works with the logic filtering based on position.

 

1. AM's can see data that are related to their id.

2. M can see data related to their id and the rest of the country.

 

I have a unique request where in a single visual, all the AM's should be able to see their colleagues data, which is esentially a view M would have but only for that visual. Is this even possible?

 

 

These are my dax expression for filtering,

 

am.PNG

 

hq.PNG

 

And my models looks like this, I filter customer to filter out the rest of my data in whole PBI.

 

model.PNG

 

 

 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @balaganeshmohan 

 

Since you want only a single visual to be different from the current RLS, a possible solution is to create a calculated table that includes aggregated values to populate that specific visual. Keep this table disconnected from other tables in your current model. Only select columns from this table into that visual. And create a RLS DAX expression on this table to look up Country rather than Person code, similar to the second DAX expression shown in your Post. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

@v-jingzhangThanks, that sounds like it would work, but what about in the long run when more of these requests comes in, making a copy of large tables in a large dataset doesn't seem very effecient.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors