Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dynamic RLS in Power BI

Hello Everyone,

 

I am facing one challenge while implementing the Dynamic RLS in my project, please help with the scenario and data modelling.

Scenario with the below 3 tables involved,
1. Projects - This is the main table and acts as fact table having the ID coulmns, accounts info and base measures. Key columns are(ID)

2. Projects Share - This table having UserID & ParentID info, it is having relationship with ID column to the Projects table and also UserID can join the Account Default table which is the below 3 table. Key columns are (ParentID) & (UserID)

3. Default Account Team - This table having the User info including User name, email etc also what are Specific accounts added to the user. Key columns are(UserID)
Note: when I make the relationship between Projects Share & Default Account Table is having Many to Many relationship.

please help me to implement the Dynamic RLS in this datamodelling scenario.

Thanks,

Bala

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Create a new table like

RLS Table =
SUMMARIZE (
    'Default Account Team',
    'Default Account Team'[Email],
    'Default Account Team'[User ID]
)

And link this to the default account team. That should be one-to-many.

Many-to-many relationships are OK for the other tables, but make sure that they are single-direction, so that default account team filters project share and project share filters projects.

Create a security role and add a filter so that 'RLS Table'[Email] = USERPRINCIPLENAME().

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Create a new table like

RLS Table =
SUMMARIZE (
    'Default Account Team',
    'Default Account Team'[Email],
    'Default Account Team'[User ID]
)

And link this to the default account team. That should be one-to-many.

Many-to-many relationships are OK for the other tables, but make sure that they are single-direction, so that default account team filters project share and project share filters projects.

Create a security role and add a filter so that 'RLS Table'[Email] = USERPRINCIPLENAME().

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.