Forum Discussion
Row Level Security with OR condition
Hi,
In most of our model designs we have a structure like below:
Fact Table -> Dim Table - > Access table
There are different access tables based on different business areas, which connects to associated dimesion tables and then to Fact tables. We have dynamic RLS implemented on access table. This works fine.
But now in one of the scenarios, we have a structure as below
Here we are implementing 2 dynamic RLS on access table 1 as well as access table 2, but we do not want fact table to get filtered by AND condition of these two RLS, instead we need OR condition to give the results.
Let me know if anyone has implemented something similar, it would be really helpful.
Thank you in advance!
Regards,
Jyoti Pawar
3 Replies
- amitchandakSuper User
Anonymous , Create two roles and use both of them, that will give or.
- AnonymousNot applicable
Thank you for solution!
But I still want to know if there are any more ways to do it.
- v-luwang-msftCommunity Support
Hi Anonymous ,
For similar questions, you may refer to the following article to see if it is helpful to you.
Configure Row Level Security with OR condition
Did I answer your question? Mark my post as a solution!
Best RegardsLucien