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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Cobra77
Post Patron
Post Patron

Configure Row Level Security with OR condition on 4 Dimensions ( the same)

Hi

How implement with best practize the RLS with Or condition ?

 

Actually the secu is on 04 - Principal , its ok :

RLS vt_secu_users :  [upn] = USERPRINCIPALNAME()

Cobra77_0-1623144474330.png

 

 

Now,  we want a OR condition on  

-> 04 - Principal

-> 05 - Applicant

-> 02 - Beneficiary

-> 03 - Guarantor

 

these are the same 4 tables

 

Thanks for your helps.

Best regards.

 

1 ACCEPTED SOLUTION

Hi @Cobra77 ,

Please consider the 'Apply security filter in both directions ' in the relationships.

rls-apply-security-filter.png

By default, row-level security filtering uses single-directional filters, whether the relationships are set to single direction or bi-directional. You can manually enable bi-directional cross-filtering with row-level security by selecting the relationship and checking the Apply security filter in both directions checkbox. 

 

Refer:

  1. Row-level security (RLS) with Power BI 
  2. How does Row Level Security works when there is a BI-Directional Filter in Power BI/Tabular Model? 
  3. What is “Apply security filter in both directions” (normal vs security filter)? 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Cobra77 , RLS condition should return true or false, I did not get the logic, what you want with those 4 columns, Can you explain that.

Just treat the RLS statement like if the condition at line level

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

hi @amitchandak 

 

if the user user1@group.com  has rights to account code 10250 for example.
Currently only dimension '04 - Principal 'was filtered.

 

We want that with this code the RLS filters dimensions:

'04 - Principal'[Code] =10250 or 05 - Applicant[Code] =10250 or 02 - Beneficiary[Code] =10250 or 03 - Guarantor[Code] =10250

Hi @Cobra77 ,

Please consider the 'Apply security filter in both directions ' in the relationships.

rls-apply-security-filter.png

By default, row-level security filtering uses single-directional filters, whether the relationships are set to single direction or bi-directional. You can manually enable bi-directional cross-filtering with row-level security by selecting the relationship and checking the Apply security filter in both directions checkbox. 

 

Refer:

  1. Row-level security (RLS) with Power BI 
  2. How does Row Level Security works when there is a BI-Directional Filter in Power BI/Tabular Model? 
  3. What is “Apply security filter in both directions” (normal vs security filter)? 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.