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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Swati20
Frequent Visitor

Dynamic RLS in Power BI with duplicate values

Hi,

I'm trying to apply RLS in Power BI, the sample of the tables being used have been attached below:

1. The EmpTable on which the RLS is to be applied is in this format where Account coulum has duplicates

Swati20_0-1688642999912.png

2. The UsersTable with Employee & Admin emails in this fromat where there are multiple users under single account

Swati20_2-1688643873687.png

 

I want to apply RLS on the EmpTable and have created many-to-many relationship by Account name between the EmpTable and UsersTable. Following are the requirement:

1. Admins should be able to access data related to all Account names

2. Emp should be able to access data related to their Account data only

 

Your help will be appriciated!!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Swati20,

Perhaps you can create these mange fields on power bi side, you can create calculated table to append custom row from the raw table and use this new table to link other tables.
After these steps, you can setting additional if statement condition batch in RLS filter to check current role are include in the exception scenarios.

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Swati20,

I'd like to suggest you create bridge table with unique records extract from these two tables and work as relationship key to link these tables. Then you can set RLS on this table fields to accurately control the RLS filter effects.

Joining Many to Many with a Bridge in Power BI | Seer Interactive

Regards,

Xiaoxin Sheng

Hi @Anonymous , 

Thanks for your response. 
Actually, my main issue here is that Admins should have full visibility of the data but I'm not able to create Admin role for that since neither can I assign a single account to the Admin similar to the users nor can I assign "ALL" for all accounts as there is no "ALL" or blank values in the Account column of EmpTable .

Anonymous
Not applicable

Hi @Swati20,

Perhaps you can create these mange fields on power bi side, you can create calculated table to append custom row from the raw table and use this new table to link other tables.
After these steps, you can setting additional if statement condition batch in RLS filter to check current role are include in the exception scenarios.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.