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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
stokidez
Helper III
Helper III

Lock Slicers for Different Users

Hi folks,

 

I have a single page dashboard which can be filtered by department. I would like, once published, to push this out to different users across an organisation, who work in different departments i.e. when Colleague A (who works in Compliance) opens the report, the report automatically filters on Compliance and the slicer is locked so cannot be changed to another department. Is this possible? Thanks! 

 

stokidez_0-1616753101815.png

 

5 REPLIES 5
kamalowfo
New Member

@stokidez hi! Have you found a solution? Would be helpful if you share the guideline to this !

best regards,
O

V-lianl-msft
Community Support
Community Support

vanessafvg
Super User
Super User

are you doing this from a security perspective or just a user experience perspective?  Have you considered row level security?

 

https://www.sqlshack.com/introduction-to-row-level-security-in-power-bi/

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thanks for the response @vanessafvg .  More so from a user experience point of view, row level security sounds too extreme for this case. I purely want to set the slicers to certain value depending on the audience - is what I'm asking for possible?

I think its be possible;

 

First off you would need a list of users and what department they map to.  Using the  the userprincipal () function to bring back that user name and then map it to which department.

 

Then you could probably create a switch statement with a dynamic slicer to return the value dependent on department.

 

userprincipal

https://dax.guide/userprincipalname/

https://exceltown.com/en/tutorials/power-bi/powerbi-com-and-power-bi-desktop/dax-query-language-for-...

 

switch()

https://docs.microsoft.com/en-us/dax/switch-function-dax

https://towardsdatascience.com/using-slicers-for-dynamic-chart-adjustment-in-powerbi-47d0ea1b839e

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.