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
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
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 6 members 2,385 guests
Please welcome our newest community members: