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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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