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 Team,
I would request someone to help me with the issue I have.
I have RLS implemented in a report like below :
Role = User
DAX expression =
[useremail] = userprincipalname()
|| if ( maxx (filter ( 'table', 'table'[useremail] = userprincipalname() ) ,
'table'[is_admin] ) = 0,
'table'[usereamil] = userprinicipalname(), TRUE )
This role is giving full access to the user who's [is_admin] = 1 and for others who's [is_admin] = 0, it gives only their information.
My question is when an admin(who's [is_admin] = 1) logs into the report, I need to show his details only instead of everyone's and only when he wants to view others he can search for others and see all data.
This is what I get when I put your expression through DAXFormatter.com:
DAX expression =
'table'[useremail] = USERPRINCIPALNAME ()
|| IF (
MAXX (
FILTER ( 'table', 'table'[useremail] = USERPRINCIPALNAME () ),
'table'[is_admin]
) = 0,
'table'[useremail] = USERPRINCIPALNAME (),
TRUE
)
Are you sure this is what you wanted?
Usually in such scenarios you create separate roles for super users.
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 |
---|---|
109 | |
95 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |