cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
ksbiexpert06
Frequent Visitor

Power BI "An Active relationship already exists between tables" Deactivate the existing relationship

Hi , I have a complex data model and some of the tables has multiple joins between two tables and i am not able to define multiple joins between the two tables. I am getting an error "Power BI "An Active relationship already exists between tables" Deactivate the existing relationship first".. Below is a quick example and not the actual tables. Its allowing me only to activate only one relation ship ..? Any suggestion

 

multiplejoin.JPG

1 ACCEPTED SOLUTION
KHorseman
Community Champion
Community Champion

You can only have one active relationship between two tables. You can however create as many inactive relationships as possible. It's easiest to do this through the Manage Relationships button on the Modeling tab in the ribbon. Once you've added them, you can write measures to reactivate them for specific calculations with the USERELATIONSHIP function. In cases where you need more than one relationship between the same two tables, I recommend making none of them active, simply toggle them back on with USERELATIONSHIP.





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @ksbiexpert06,

In PBI you can only have one active relationship between tables, although you can have more than one relation between tables only one will be active.

The option here is to create dimension tables with unique values and pass the relationships for both tables trough those dimension tables creating a star schema.

Regards,
Mfelix

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



KHorseman
Community Champion
Community Champion

You can only have one active relationship between two tables. You can however create as many inactive relationships as possible. It's easiest to do this through the Manage Relationships button on the Modeling tab in the ribbon. Once you've added them, you can write measures to reactivate them for specific calculations with the USERELATIONSHIP function. In cases where you need more than one relationship between the same two tables, I recommend making none of them active, simply toggle them back on with USERELATIONSHIP.





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

Proud to be a Super User!




Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors