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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
StefPH76
Frequent Visitor

Dynamic RLS not working

I have a very simple tabel with some rows that have an email address as one of the columns. For each email address there are several mathing rows. There is nothing else in the model. Setting up RLS with a fixed value works fine, I can test in desktop (=OK), i can publish to service and assign role (=OK).

 

But when I change the fixed value to a dynamic one (USERNAME() or USERPRINCIPALNAME()) it does not work anymore. I have measures showing me the values of these functions and they are equal to the values I have in the above table. I can even test for equality in a measure and get a TRUE for relevant rows. But still filter is not applying, not with View as in desktop and not in service either. With one exception though, when I change the email address in some of the rows to "DESKTOP- ..." (whatever the default value in PBI Desktop) it works fine when I view as Role (of course, not in service).

 

Pretty sure I am missing something really silly, but completely stuck.

1 ACCEPTED SOLUTION
StefPH76
Frequent Visitor

Just as I thought, owner sees everything. Using "Test as role" under dataset > security > ... I finally see what I expected to see. In Desktop activate both the role and other user! 

View solution in original post

1 REPLY 1
StefPH76
Frequent Visitor

Just as I thought, owner sees everything. Using "Test as role" under dataset > security > ... I finally see what I expected to see. In Desktop activate both the role and other user! 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors