cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nanci Regular Visitor
Regular Visitor

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
Highlighted
Super User
Super User

Re: Circular dependency and Relationship

@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.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





nanci Regular Visitor
Regular Visitor

Re: Circular dependency and Relationship

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.
Community Support Team
Community Support Team

Re: Circular dependency and Relationship

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
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)