Forum Discussion

Hippo's avatar
Hippo
Frequent Visitor
6 years ago
Solved

Dynamic RLS with multiple dimension tables

Hi,

 

I have a simple data model where I need to apply Row Level Security. The Model consist of two dimension tables, Customer and Product, and one Fact table, Sales. I added a User security table to dynamically filter the Customer dimension data based on the username and this succesfully filters out the most important thing as well, the Sales Fact table. The join between the User security table and the Customer dimension is Many to Many with "Both" as Cross filter direction and security is applied. Works perfectly.

 

Now I have a list of thousands of products that have an owner and I would like to use the same User Security table to similarily filter the data in Product Dimension table instead of the user having to search his/her products from the dimension table. When I create a similar relationship between User security table and the Product dimension table, I can't make it active as "Power BI Desktop allows only one filtering path between tables in Data Model". And I can't deactivate the other relationship as it's already doing the filtering.

 

Is there a good solution to apply this kind of dynamic filtering to multiple dimension tables with just one User Security table? I really don't want to create more than one of these security tables.

 

The model and the solution I have is similar to what Guyinacube used in this video https://www.youtube.com/watch?v=9wN33rTaiB4 but I just need to filter that other dimension table as well.

 

Thanks

6 Replies