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
Hussein_charif
Helper IV
Helper IV

Row level security implementation

Hi,

 

i have a power bi report with multiple pages that i want to apply RLS to.

the thing is the  report is created by someone before me and i cant really change much with the relationships, there are approximatly 156 tables.

 

the RLS i want to apply is for Sales Teams and Company Name. here are the involved tables that the report uses the sales team and company name slicers from :
Customers, Items, Salesteam.


the problem is with the pages in the report that use the Company Name and salesteam from the customer table.

i connected the Access tables to :
accessTeam <> Salesteam

accessCompany <> Items

 

mainly because almost all the pages use the company name and salesteam from those tables, except for 2 pages.

 

and i cannot establish a connection between the access tables and the customer table because i'd get a circular dependancy error, and i also tried creating seperate access tables for the customer table, but it doesnt work because the values of my measures would break and give wrong numbers.

 

how should i approach this problem to be able to solved with minimal to no change within the already created relations?

2 REPLIES 2
Anonymous
Not applicable

Hi @Hussein_charif ,

 

I don't recommend that you use Both- filter direction, which can lead to a circular dependency error, try to remove the existing bidirectional relationship, and use an intermediate table.

 

You can also use DAX functions to create calculated columns or measures to avoid establishing relationships directly between tables. For example, use the RELATED function to get data from a related table instead of establishing a relationship directly. RELATED function (DAX) - DAX | Microsoft Learn

 

Could you please provide a demo file that does not contain sensitive data, which can help us reproduce the problem and provide a more accurate solution?

 

 

 

Best regards,

Mengmeng Li

hi @Anonymous ,

the thing is that i really cant change much with the report's relationships since it was made a long time ago and there are way too many tables and pages and measures that could get messed up, which i have tried and encountered.

as for using calculated columns with for example related functon, i have also tried that but didnt help.

 

how can i share a copy file and replace all my sensitive data with other data btw?

 

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.