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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply

Circular dependency

i have 2 tables, customers and salesteam. in the customers table, i have a column sales team that was added with a lookup() dax function that gets the Salesteam[salesteam.name] by doing a lookup on the salesteam[salespersoncode] that matches the customers[salespersoncode]. i dont know why it was done like that,  but there was a dependency error in the relationship when we tried to remove that salesteam column and just do a relationship between both tables on salespersoncode.


i want to make a relation between both tables, because my row level security that is filtering on the salesteam wont work where the salesteam filter is taken from the customers table. when i tried to make a relationship for both tables on [salesteam], i got an error :
circular dependancy was detected : customers[salesteam].

any suggestions to fix the issue?

1 ACCEPTED SOLUTION
vojtechsima
Resident Rockstar
Resident Rockstar

Hello, @Hussein_charif ,

I would try removing all calculated columns in both tables and redo them in Power Query.

Then I would try again.
My theory is that a couple of columns need both tables alive and functioning. Which would not be case with remove lookup.

View solution in original post

4 REPLIES 4
vojtechsima
Resident Rockstar
Resident Rockstar

Hello, @Hussein_charif ,

I would try removing all calculated columns in both tables and redo them in Power Query.

Then I would try again.
My theory is that a couple of columns need both tables alive and functioning. Which would not be case with remove lookup.

i re-did the column in power query by a merge, and it worked, thank you!

@Hussein_charif  amazing, happy to help.

okay, i'll try that and get back to you. thank you!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.