Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Join Tool

auser537
5 - Atom

Dear all,

 

I have two excel sheets with hundreds of rows that I would like to merge. (see example below).

I would like to add the value column to the first table based on Year and Country. However when I use the Join tool I get hundreds of more rows in my data. Could you please tell me what I am doing wrong.

 

In the first one I have data on companies

CompanyYearCountry
12015Canada
22016USA

3

2017UK

 

In the second one I have data on countries:

CountryYearValue
Canada20151
USA20162

UK

20173
1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @auser537 

 

Join key combination should be unique either in one of the data sources. If not it causes one to many or many to many joins. In your scenario, you can probably use unique tool on 2nd data source select columns country and year like below. Considering for every year every country has only one value.

 

atcodedog05_0-1626163971500.png

 

Hope this helps : )

Labels
Top Solution Authors