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
schwinnen
Helper V
Helper V

Date Table relationship with multiple tables

I have several data sources in my file and I need to tie them all together so I can filter them all down to the same time-frame.  To do this, I created a date table and then I thought I would be able to create relationships with all the other tables.  I created the first relationship and all was well.  However, when I created the next relationship, I was unable to make the relationship active.  I get the following error:

 

You can't create a direct relationship between Test Ops and Calendar because that would introduce ambiguity between Tables Calendar and Ops plan.  To make this relationship active, deactivate or delete one of the relationships between Calendar and Ops plan first. 

 

Ops plan is the first table that I created a relationship with Calendar.  I need this relationship.  Any anyone know how I fix this?

3 REPLIES 3
Greg_Deckler
Super User
Super User

That error means that you have multiple relationship paths between 2 tables and that creates confusion for the model. You can use USERELATIONSHIP in DAX to use a specific, inactive relationship. Would need to see your model to see what other fixes there may be. Often you can resolve these sorts of things by changing the filter direction on one or more relationships.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks.  Unfortunately, I am connected to a Postgresql DB and the model is far too complex for me to try to replicate it with Excel data and share.  I'll have to try to figure it out.

Hi @schwinnen,

 

As the error prompted, it is not possible to establish two active relationships between two tables, that would bring confusion for the model. Please use USERELATIONSHIP in DAX to specify an inactive relationship.

 

By the way, have you figured it out? If so, would you please share your solution so that it can benefit more users?

 

Regards,

Yuliana Gu

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