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
Dhruvin
Helper III
Helper III

Row Level Security not Work for Multiple Tables in Power BI

Problem:

I developed a report using 5 to 7 tables. I want to apply RLS. When I pass customer Id they can view only their data.

The report have different slicers like - Carriers and Clients. Based on CustomerId the values should be filtered.

The slicers are working properly. But when I apply RLS with same applied Join its not work.

 

Description:

Tables:

  • WayBills
  • Invoices
  • TplClient
  • Carriers
  • Customer
  • CustomerCarrier

Below is a diagram of relationship which I have applied.

Screenshot_1.png

 

Here is a link to Download the PBIX file - PBIX FILE DOWNLOAD

 

Here is how I implemented RLS.

Screenshot_3.png

Screenshot_2.png

 

Please help me if I'm doing wrong anything here.

 

1 ACCEPTED SOLUTION
Dhruvin
Helper III
Helper III

To resolve this issue, I changed the relationship between the tables.

 

RLS not apply properly if the relationship has not been established properly.

To resolve this issue, I used some DAX expression to take value of Customer Carriers to Carrier table.

I reduced the dependancy of the other tables to get name and all.

 

View solution in original post

2 REPLIES 2
Dhruvin
Helper III
Helper III

To resolve this issue, I changed the relationship between the tables.

 

RLS not apply properly if the relationship has not been established properly.

To resolve this issue, I used some DAX expression to take value of Customer Carriers to Carrier table.

I reduced the dependancy of the other tables to get name and all.

 

v-frfei-msft
Community Support
Community Support

Hi @Dhruvin,

 

You will need to apply the tick next to “Apply security filter in both directions”. Please check the steps by the online document.

 

real.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.