0

I'm trying to create RLS that will compare user1 with user1 because the domains are different. So if email is [email protected] and userprinciplename() [email protected], that should match.Some of the things I have tried, which aren't working:working

LEFT([Email], SEARCH("@", [Email]) - 1) = LEFT(USERPRINCIPALNAME(), SEARCH("@", USERPRINCIPALNAME()) - 1)

This gives user1 in a measure, not in rls -> not sure how to use it

UserName = 
VAR _selemail = SELECTEDVALUE(Employees[Email])
VAR _aposition = SEARCH("@", _selemail, 1, LEN(_selemail) + 1) 
RETURN 
    IF(_aposition > 1, LEFT(_selemail, _aposition - 1), _selemail)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.