Forum Discussion
spagad6263
2 years agoPost Patron
How to filter table by USERPRINCIPALNAME()
Hi, I would like to filter data by USERPRINCIPALNAME() via RLS. For in stance, in below table, when USERPRINCIPALNAME = '[email protected]', it should show first 2 rows, which contains '[email protected]...
- 2 years ago
spagad6263 I don't use this new look, I don't like it at all. Switch to the DAX editor and past the code there.
spagad6263
2 years agoPost Patron
Thanks for the reply. I've created below measure. Can you advise how I could link this to the role?
meas_Filter =
VAR UPN = USERPRINCIPALNAME ()
RETURN
CALCULATE (
COUNTROWS (fact_Contact),
CONTAINSSTRING (fact_Contact[MappingEmailAddress], UPN)
)