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 with multiple tables

Hi, 

 

I have the following problem, I need to apply a dynamic RLS to a table.
Said RLS comes from 3 different tables that filter the same table:

 

Captura.JPG

 

The 3 tables painted in yellow I need to apply RLS to the Dim_CostCenter table. Each of these tables contains the emails of the users.
The problem is that when applying the RLS of Cost Center it does not take into account the RLS of the other tables.

Example:
User A has to see Cost Center 1 (table RLS Cost Center) and also has to see group A of Group Fuction (this contains cost center 2 and 3 -> table RLS Group Function) which the final result for user A is that he has to see Cost Center 1,2 and 3.

 

Any suggestion?

 

Thanks!

Regards!

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

Since there is only one relationship diagram, I can't give more details RLS code suggestions.

You can try:

vjaneygmsft_0-1636339524195.png

Secondly, it is recommended that you create a separate user table as a slave table, and then connect to other related tables, so that you only need to use the user table and set the conditions of the user table, RLS can be performed.

Reference:

Row-level security (RLS) with Power BI - Power BI | Microsoft Docs

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,
Community Support Team _ Janey

 

View solution in original post

1 REPLY 1
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

Since there is only one relationship diagram, I can't give more details RLS code suggestions.

You can try:

vjaneygmsft_0-1636339524195.png

Secondly, it is recommended that you create a separate user table as a slave table, and then connect to other related tables, so that you only need to use the user table and set the conditions of the user table, RLS can be performed.

Reference:

Row-level security (RLS) with Power BI - Power BI | Microsoft Docs

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,
Community Support Team _ Janey

 

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.