I have some concerns about the way your model is developing. Let me try to clarify, RLS will be applied on your User Rights table so I moved that to the top and placed your dimension/lookup tables below that. Now you can clearly see that the filter direction runs in the opposite direction of what is considered desired.
So I denormalized your User Rights table so it now holds all dimensions for Region, Country and Sales Person. First I created a List that holds the sales person code for each row (see below) and then chose the option “expanded to new rows”
Split by delimiter the RC Permission column so we have a valid value for Region & Country on each row and concateneted a new RLS key containing these 3 dimensions.
Created the same RLS key in your sales table and cleaned up some columns here and there, reordered the model so this is what it looks like now, all filters are moving in the right direction.
I apply you recommendation in my model and it can limit the data access for each user .
Actual, there is no relationship between region and sales person and they came from 2 different data sources, but i may create a table for all combination of region and sales person.
But how can I keep to use DIM-Customer as filter table (slicers in report) as it get more customer information that exclude in User control table?
As I cannot build active relationship between User Control table and DIM-Customers table, and user can see all RSO value in the slicer even though they cannot view the data
(Steven should able to see DACH, NL, PL only).
I would like the user login to Power BI and review their own region data without any further selection.
@chiu2003 once you’ve established a commonality between DIM Cstomer and User control in your model you could use a measure to filter Slicers in your report, here’s an example.
Hi @chiu2003, a response on this post has been tagged as “Solution”. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!