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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nanci
Helper II
Helper II

Circular dependency and Relationship

I have 2 tables: Master and Logs.

I'm making a report with a matrix where I use data from both tables so I need to have a relationship between them.

I have a long string that I'm using as unique IDs to join both tables, but when I try to set the relationship, I receive the error "A circular dependency was detected". Now, I understand this error is because to get the ID in Logs, I make a LOOKUPVALUE search in Master.

I really need to make a search in Master in order to define the ID for Logs, is the only way I can get the correct ID.

 

Let me know what other information you need.

3 REPLIES 3
parry2k
Super User
Super User

@nanci how you are getting the id in log table? Not sure why you can set relationship based on the common field between these tables.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks for your reply, @parry2k 

 

I have this formula:

ID = IF(ISBLANK(LOOKUPVALUE('Master'[ID],'Master'[ID],Logs[IDcomplete])),IF(ISBLANK(LOOKUPVALUE('Master'[ID],'Master'[ID], Logs[IDOnlyProject])),"NOT FOUND IN MASTER",Logs[IDOnlyProject]),Logs[IDcomplete])
 
So basically in Logs I have 2 IDs, and for deciding which one to use I make a search in Master.

Hi @nanci ,

Here is a good refresher on circular dependencies: https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

If you still need help, please share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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