Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I've a slicer that has selection of departments. So, I want to limit selection of departments based on the user logging in.
| User | Department |
| user1@company.com | Marketing |
| user2@company.com | Sales |
| user3@company.com | Call Center |
so if the user logging in was user2@company.com, then the user should see in the slicer ONLY Sales.
thanks in Advance
Solved! Go to Solution.
Hi @Anonymous,
I'd like to suggest you refer to Gilbert's blog to know how to use RLS with username, then you can simply create a dynamic role based on the username and it will be interacting with the current user.
Xiaoxin Sheng
Hi @Anonymous,
I'd like to suggest you refer to Gilbert's blog to know how to use RLS with username, then you can simply create a dynamic role based on the username and it will be interacting with the current user.
Xiaoxin Sheng
@Anonymous , Create a role
[User] = userprincipalname()
make sure this table is joined with sales.
How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |