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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Syntax error when using RLS

Hi

I'm trying to implement Row Level Security, using as a example the radacad tutorial (https://radacad.com/dynamic-row-level-security-with-manager-level-access-in-power-bi)

 

I've adapted it to my tables, and If I create a measure with the code, it works.

But when I try to add it to the RLS tab, I  get an error: "The syntax for ";" is incorrect"...

 

Can anybody help me with this error?

BTW: For some unknown reason, in my computer, all expressions works with ";", but in my collegues computers, the expressions works with ",".

 

Thanks!

 

 

If( 
    MaxX(
        Filter(
        'RLS_Test_Data';
        'RLS_Test_Data'[EMAIL_USER_RLS]=USERPRINCIPALNAME()
        )
        ;'RLS_Test_Data'[IS ADMIN]
    )=0;
    FIRSTNONBLANK(RLS_Test_Data[EMAIL_USER_RLS];RLS_Test_Data[EMAIL_USER_RLS])=USERPRINCIPALNAME();
    1=1
)

 

 

 
Syntax Error.png
1 ACCEPTED SOLUTION

Interesting, that's usually a regional language setting things. You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it. It does kind of sound like a bug.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

This issue should be related to the region settings. Please update power bi desktop to the latest version and check if this issue persists.

 

Regards,

Jimmy Tao

Anonymous
Not applicable

I've updated to the last version  2.78.5740.861 and the error is still there.

Anonymous
Not applicable

I've tryied changing all the ";" to , and it worked. Have no idea why, but seems to be a bug of PowerBi, because in a measure it need to be with ";" and in RLS with ","

 

 

Interesting, that's usually a regional language setting things. You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it. It does kind of sound like a bug.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.