March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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 @shivapriya
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 @shivapriya
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 |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |