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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ansa_naz
Continued Contributor
Continued Contributor

Cannot figure out how to correct relationship ambiguity

Hi all


I have the following 4 tables:

 

Sites

Lifts

Customers

Sales

 

They are linked as below:

 

Lifts M --- 1 Sites

Sites M ---1 Customers

Customers 1 --- M Sales

 

Table structure is as follows:

 

Lifts:

LiftID    SiteID    LiftName

 

 

Sites:

SiteID   CustomerID     SiteName

 

Customers:

CustomerID     CustomerName

 

Sales:

SalesID    CustomerID    SiteID    LiftID    Amount    Date

 

How can I link the Sites and Lifts table to Sales, so that I can see Sales by LiftName and Sales by SiteName? If I try to create a relationship between Lifts and Sales using LiftID (the obvious choice initially for me) I get ambiguity errors in Power BI. Same with trying to create a relationship between Sales and SiteID

 

See below PBIX file with data:

 

https://1drv.ms/u/s!AuiIgc_S9J5JhbYbCO2jbeQPfpzmXw

 

Cheers for all help

1 ACCEPTED SOLUTION
ansa_naz
Continued Contributor
Continued Contributor

Hi @parry2k I managed to find an answer to this, it involved using the USERELATIONSHIP function to use an inactive relationship - didnt know the function could do that. Thanks for the reply

 

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@ansa_naz I looked at your file and you can set direct relationship between your sales table and life and site table and that will give you the result

 

image.png



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

ansa_naz
Continued Contributor
Continued Contributor

Hi @parry2k I cannot remove the relationship between Site and Customer as it is needed for other visuals. Because of that, any relationship betwen Site/Sales and Lift/Sales cannot be activated:

 

Ambiguity.jpg

 

Any ideas?

Cheers

@ansa_naz I don;t think it will work based on your relationship, you have to set the relationship between you sales and other tables and you need to review other reports and make the changes. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

ansa_naz
Continued Contributor
Continued Contributor

Hi @parry2k I managed to find an answer to this, it involved using the USERELATIONSHIP function to use an inactive relationship - didnt know the function could do that. Thanks for the reply

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.