Forum Discussion
DataSundowner
Helper II
3 years agoRLS Retain Null Values for All Users
Hello everyone. I have a fact table with LocationID and a location dimention table that connects to LocationID in the facts table. Then I have a RLS table that has locationID and user email, and I'm ...
- 3 years ago
Hmm, try it like this.
VAR _UPN = USERPRINCIPALNAME () RETURN 'LocationDim'[locationID] IN CALCULATETABLE ( DISTINCT ( 'RLS'[locationID] ), 'RLS'[Email] = _UPN ) || ISBLANK ( 'LocationDim'[locationID] )
jdbuchanan71
Super User
3 years agoHmm, try it like this.
VAR _UPN = USERPRINCIPALNAME ()
RETURN
'LocationDim'[locationID]
IN CALCULATETABLE ( DISTINCT ( 'RLS'[locationID] ), 'RLS'[Email] = _UPN )
|| ISBLANK ( 'LocationDim'[locationID] )- DataSundowner3 years ago
Helper II
jdbuchanan71 This one worked! Thank you!