Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

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