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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Cobra77
Post Patron
Post Patron

How configure RLS with OR condition with 6 dimensions on 2 fact table

Hello

I had succeeded with a single safety table to make one or on the 4 dimensions.
Now I have a new problem.
I add 2 additional dims identical to the 4 others but these are linked to another fact table.

and I would like to always keep the OR on the first 4 linked to fact table 1 and add an OR between the other 2 dims on fact table 2.
Example in the files below:
The user titi@toto.fr must be able to see the lines
- or there is at least once pink on the 4 dim connected to the fact table 1
- or there is at least once pink on the 2 dim connected to the fact table 2

On the test_rls_OR_2_Fact file, if I only select the RLS on the 4 dims:

Cobra77_0-1635335398125.png

it works, except with a non-existent color which returns the line to me suddenly :

 

Cobra77_1-1635335430722.png

if I select all the roles it doesn't work anymore.
It returns all the rows from all the fact tables to me.

source sample pbix :
https://1drv.ms/u/s!AmluE3Tt6h4WgjicNxee8rMg12fH?e=g8OYFB

Thanks for your help.

1 ACCEPTED SOLUTION

 

I found,

a combination between the dim of the 1st fact table and the 2, we get here 8 roles

Cobra77_1-1635932558588.png

 

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Cobra77 , when you want And, have conditions in one role. When you want OR have conditions in separate roles. When you use two roles they will be or.

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 , thank you for your reply.

they are separate roles, yet if I combine them all, the fact that they are on 2 fact tables? , blows me all the rls

If I only use the first 4 roles on the main fact table it's ok for the OR

 

could you look at my example and tell me what's wrong ? 

Thanks

 

I found,

a combination between the dim of the 1st fact table and the 2, we get here 8 roles

Cobra77_1-1635932558588.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.