Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |