Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 |
---|---|
98 | |
76 | |
69 | |
53 | |
27 |