Forum Discussion
Create RLS relationship for 2 columns in fact table
- Anonymous1 year ago
Hi, jaryszek
Yes. Creating a new composite primary key like BillingAccount-BillingProfile can be a good practice to handle many-to-many relationships in Power BI. This approach helps in uniquely identifying each record and can simplify the relationships between tables.
For Row-Level Security (RLS) filters, it's generally more efficient to enforce them on dimension tables rather than fact tables. In your case, you should create the RLS filters on the PermissionTable and ensure that these filters propagate through the relationships to the Bridge Table and then to the Fact Table1.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you.
tried to implement your suggestions but still there is the issue with many to many relationships:
so I created a new column as new composite primary key BillingAccount-BillingProfile:
It is a good practice?
On which relationships should i create RLS filters?
PermissionTable --> many to one -->Bridge Table:
BridgeTable --> 1 to many --> Fact Table
?
Thank you for your help,
Best,
Jacek
Hi, jaryszek
Yes. Creating a new composite primary key like BillingAccount-BillingProfile can be a good practice to handle many-to-many relationships in Power BI. This approach helps in uniquely identifying each record and can simplify the relationships between tables.
For Row-Level Security (RLS) filters, it's generally more efficient to enforce them on dimension tables rather than fact tables. In your case, you should create the RLS filters on the PermissionTable and ensure that these filters propagate through the relationships to the Bridge Table and then to the Fact Table1.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.