The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
IF (USERPRINCIPALNAME() = LOOKUPVALUE(VW_ROLE_ACCESS_EMAIL[COMPANY EMAIL ID], VW_ROLE_ACCESS_EMAIL[Datafrom],"XYZ",
VW_ROLE_ACCESS_EMAIL[Role],"Super User",
VW_ROLE_ACCESS_EMAIL[COMPANY EMAIL ID],USERPRINCIPALNAME()),
TRUE (),
OR(
OR(
OR(
OR(
[L1_EMAIL] = USERPRINCIPALNAME (),
[L2_EMAIL] = USERPRINCIPALNAME ()),
[L3_EMAIL] = USERPRINCIPALNAME ()),
[L4_EMAIL] = USERPRINCIPALNAME ()
)))
I am getting the end of input was reached error. i am trying to apply dynamic rls in this statement.Pleasenhelp me asap
Solved! Go to Solution.
Hi @Anonymous
Please try the following DAX
IF (
USERPRINCIPALNAME() = LOOKUPVALUE(
VW_ROLE_ACCESS_EMAIL[COMPANY EMAIL ID],
VW_ROLE_ACCESS_EMAIL[Datafrom], "XYZ",
VW_ROLE_ACCESS_EMAIL[Role], "Super User",
VW_ROLE_ACCESS_EMAIL[COMPANY EMAIL ID],
USERPRINCIPALNAME()
),
TRUE,
OR(
[L1_EMAIL] = USERPRINCIPALNAME(),
[L2_EMAIL] = USERPRINCIPALNAME(),
[L3_EMAIL] = USERPRINCIPALNAME(),
[L4_EMAIL] = USERPRINCIPALNAME()
)
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Please try the following DAX
IF (
USERPRINCIPALNAME() = LOOKUPVALUE(
VW_ROLE_ACCESS_EMAIL[COMPANY EMAIL ID],
VW_ROLE_ACCESS_EMAIL[Datafrom], "XYZ",
VW_ROLE_ACCESS_EMAIL[Role], "Super User",
VW_ROLE_ACCESS_EMAIL[COMPANY EMAIL ID],
USERPRINCIPALNAME()
),
TRUE,
OR(
[L1_EMAIL] = USERPRINCIPALNAME(),
[L2_EMAIL] = USERPRINCIPALNAME(),
[L3_EMAIL] = USERPRINCIPALNAME(),
[L4_EMAIL] = USERPRINCIPALNAME()
)
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
181 | |
82 | |
63 | |
47 | |
43 |