Forum Discussion

thisisausername's avatar
5 years ago

Join with an OR condition?

I have a Products table with CountryID and Company ID.

 

I have two separate tables with those keys - Countries and Companies.

 

I want to in Power Query do a left or inner join in my Products table on where either [CountryID] = Countries[CountryID], OR where [CompanyID] = Companies[CompanyID]

 

Is this possible, to have this kind of OR condition in a join in Power Query?

2 Replies