Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
So I have two tables. A fact table with Territory ID's and then the Employee table has Empolyee ID's and Territory ID's.
The Employee table has a many to many relationship between Employee ID's and Territory ID's. So one employee ID will have multiple Territory ID's associated with it. Also, one Territory ID can have multiple employee ID's associated with it.
I was trying to think of a way to use this table to implement row level security on the fact table, but I am having trouble coming up with a way to do so. Lookupvalue would not work since there are multiple employee ID's for one territory ID.
Is it possible to have row level security in this situation?
Solved! Go to Solution.
Hi @Anonymous,
>>Is it possible to have row level security in this situation?
Many to many relationships not works on power bi.
For your scenario, you need to add a bridge table to link tables who has the multiple records.(modify 'many to many' relationship to 'many to one')
After these steps, you can enable RLS on this bridge table.
Regards,
Xiaoxin Sheng
Hi @Anonymous,
>>Is it possible to have row level security in this situation?
Many to many relationships not works on power bi.
For your scenario, you need to add a bridge table to link tables who has the multiple records.(modify 'many to many' relationship to 'many to one')
After these steps, you can enable RLS on this bridge table.
Regards,
Xiaoxin Sheng
Hey @v-shex-msft , how can I apply RLS to the bridge table? I have a similar scenario where I have one customer and many issuers (the security table) and then I have a dimension for the issuers. I created a bridge table of distinct issuers and I created a relationship with the dimension and the security table (both way filtering on both tables). When I applied RLS to the user security table it doesn't work.
Could you please elaborate more how do you apply RLS on the bridge table?
Thanks a lot!
what is your grain of security - territory? Or would someone theoretically be secured to employees?
If territory - I would make the security flow one way. If you have both, perhaps setup multiple roles and potentially create an interstitial table using a merge query with all combinations and secure through that?
Not sure if I understand your question completely, but I believe the grain of security would be Employee ID. This employee ID would be tied with their email address so that when they view the report only the territories that are mapped to that emplyee ID would appear.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |