Forum Discussion

jaryszek's avatar
jaryszek
Super User
1 year ago
Solved

Create RLS relationship for 2 columns in fact table

Hi Guys, in fact table I have Cost data and want to restrict them based on BillingProfileId and BillingAccountId. I created Permission Table with User, Email, BillingAccountId, BillingProfileId...
  • Anonymous's avatar
    Anonymous
    1 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.