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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
winter2805
Frequent Visitor

RLS Help

Hi All,

I'm new in Power BI.

I need to implement RLS but when I create new role and set the filter for my table, the role doesn't work!

I follow the tutorial into documentation page of Power BI.

When I test my role I see all data for the user that I must restrict data.

I use the latest versione of Power BI Desktop and I use the gateway enterprise.

My DB is a SQL SERVER EXPRESS DB.

The role name is Vendor01 and the filter of my table is set as the follow

- table Invoice --> this is table number 4 into list of all table

- [vendorcode] = "S04" <-- this is the extact syntax

 

Please help me.

3 REPLIES 3
Greg_Deckler
Super User
Super User

See this article by @ankitpatira. I believe that when I tested this, I had to use the syntax shown in the article and include the table name. So, in your case, try:

 

Invoice[vendorcode]="S04"

 

http://community.powerbi.com/t5/Community-Blog/Row-Level-Security-in-Power-BI/ba-p/31031

 

 



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi,

I use the syntax that you propose but doesn't work.

When I test the roles with ellipse "Test As Role" my report became empty and all object have "X - View Details" icon.

My e-mail is in a group.

I don't understand the problem.

Another thing: I put VendorCode as report filter also but doesn't work yet.

 

Can you help me?

When you select test as role, you get two options

 

Role Test.png

 Type in the username in the bot that says enter email address. This should filter your report.

 

 

 

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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