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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ARomain57
Frequent Visitor

Ambiguous relationship and how to adjust?

I have some tables in Powerbi and am getting am ambiguious relationship error. I understand why I have this error, I just honestly have no idea how to fix this. Asking for some pointers.

At the moment, my model works and the relationhsips are below. 

PatientInfo is my main table. I want this to be the center of the model. The only field that should link out of this table to any other is CaseID


ApproachInfo on the bottom left is linked to PatientInfo by CaseID. However, the direction is currently only PatientInfo --> ApproachInfo, and I would like it to be both directions. The cardinality can also be 1:1, but is not at the moment due to the ambigious error.....

ApproachInfo is connected to Contact table (top left) by ContactID. However, I also have an issue in which I have 2 different columns with 2 different contactIDs. I currently have an active and inactive relationship between these tables.

AuthorizationForm (upper middle) is connected to PatientInfo by CaseID and Contact by ContactID

StaffTracking (bottom right) is connected to PatientInfo by CaseID and Contact by ContactID

Relationship question.jpg

 

I want my ApproachInfo <--> PatientInfo but I am getting am ambigious error, which is expected. 

My quesiton is....how do I fix this? What would I need to do to make this model better? If I need a bridge table (not sure if I do or not), what exactly would I need?


3 REPLIES 3
Anonymous
Not applicable

Hi @ARomain57 ,

 

Did MNedix reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.

 

Best regards,

Adamk Kong

MNedix
Super User
Super User

Heya,

 

Not having too much info, I would simply merge ApproachInfo and PatientInfo in a new query and expand/retain the columns I am interested in. To do that, go to Transform Data (Power Query) -> Home tab -> Merge Queries -> Merge Queries as New. Use PatientInfo as first table, ApproachInfo as 2nd, merge them by the CaseID column and do a Left Outer join; I don't know if Left Outer is the best for your case, you can experiment with other joins. Then, in the new query, expand the newly added table and retain the columns you are interested in.

Second, you may want to fix the 2 ID columns in Contact, perhaps via a 3rd calculated column. This will probable bring more clarity in Contact IDs.

 

Hope it helps.



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

Thank you! Will try that

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.