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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Row Level Security and Slicer

Hello Experts,

 

I am stuck with one problem and need your guidance.

 

I have a table and it has 4 departemnts like 10,20,30 and 40. I have set the RLS with each departments respective managers so when dept 10 logs in then he could see just his data, for dept 20 manager, he can see just dept 20 data and so on.

 

Now these departments want to share the data amonst then e.g. say dept 40 is sharing his data with dept 10. So I have created one column in table like 'shareddata' and put value 40 against dept 10 records. Then I have created a slicer in PBI with shareddata values.

 

So when dept 10 manager logs in then he can see dept 40 in this slicer but he also want to access dept 40 values when he clicks on this slicer. But, I guess, due to RLS he can just see dept 10 since his role is set so.

 

When I just select values in this sclicer then the visual shows respective values but when I run "View as a role" for dept 10, it just show dept 10 values evenif I select dept 40 in the sclicer.

 

Could anyone advise how to achieve this type of functionality? 

 

Please help! 

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

@Anonymous,

 

You may add the following DAX filter expression.

|| LOOKUPVALUE ( Table1[dept], Table1[shareddata], Table1[dept] ) = 10
Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may add the following DAX filter expression.

|| LOOKUPVALUE ( Table1[dept], Table1[shareddata], Table1[dept] ) = 10
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello All,

 

Any inputs on this, please?

 

Thanks

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.