Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
shivapriya
Frequent Visitor

the end of input was reached in rls

 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

1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

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.

View solution in original post

1 REPLY 1
v-jialongy-msft
Community Support
Community Support

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.

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.