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,
In RLS I wish to give access to all data for the managers and only their own data for others. I created, to test, two simple tables; one Sales rep-table with ID, Mail and IsManager (1 for yes, 0 for no) and a Sales transactions-table with ID and sales number.
I create a calc measure to see if the logged in user is a manager or not by using
Solved! Go to Solution.
I found a simple solution.
I created a new column [All] in the sales rep-table with "1" on every row. I then created a RLS role "Managers" with the formula "[All] = 1" on the sales rep-table. Then I created RLS role "Others" with the formula "[Mail] = UserPrincipalName" on the sales rep-table.
Im now able to add members to the two groups whether they are managers or not.
/Mikkel
I found a simple solution.
I created a new column [All] in the sales rep-table with "1" on every row. I then created a RLS role "Managers" with the formula "[All] = 1" on the sales rep-table. Then I created RLS role "Others" with the formula "[Mail] = UserPrincipalName" on the sales rep-table.
Im now able to add members to the two groups whether they are managers or not.
/Mikkel
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 |
---|---|
111 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |