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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
stilllearningbi
Frequent Visitor

RLS is not filtering data in PBI Service but is filtered in PBI Desktop

My RLS is working fine and filtering through in PBI Desktop but when I test in PBI Service, the data are showing zero value for the fact table that are directly connected with Permission tbl whereas for the table that are not connected to that fact table, the value are showing for overall value and not restricted by RLS.

 

For relationship between Permission and Region tbl. I use Region column to connect both tbl

For Region and Sales tbl. I use Region column to connect both tbl

.stilllearningbi_0-1672334163059.png

I also have included the user email in PBI Service security settings.

Until now, I still dont understand where did i go wrong

 

4 REPLIES 4
Anonymous
Not applicable

Hi @stilllearningbi 

Please confirm that  the RLS roles are applied to members who are assigned to the Viewer role in the workspace

You can refer to the following links:

Solved: Testing Dynamic RLS? - Microsoft Power BI Community

Dynamic Row Level Security (Dynamic RLS) - Microsoft Power BI Community

Power BI Row Level Security and Dynamic RLS | by David Ding | Analytics Vidhya | Medium

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @Anonymous 

 

I've created a new workspace and im not assigned any of the user as members of the workspace. I only assigned the user's email at the Security settings.

Anonymous
Not applicable

Hi @stilllearningbi 

Please check that in power bi desktop username() will return a user in the format of DOMAIN\User and userprincipalname() will return a user in the format of user@contoso.com.

Within the Power BI service, username() and userprincipalname() will both return the user's User Principal Name (UPN). This looks similar to an email address.

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I'm using USERPRINCIPALNAME() and assign that with email column

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.