Alteryx Designer Desktop Discussions

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

Question union of two data set

timol
8 - Asteroid

Dear all

 

I have two datasets that I would like to union

 

The first contains of a company ID and founding year numbers:

 

Company IDFounding Year
11990
21991
31992
41993
51994

 

The second one contains the company ID a year and the respective number of emmployees

 

Company IDYearNumber employees
120153
120164
120175
120186
120197
3201525
3201626
3201727
3201828
3201929

 

 

What would I need to do in Alteryx to receive the following merged output of the two datasets?

 

Company IDFounding YearYearNumber employees
1199020153
1199020164
1199020175
1199020186
1199020197
21991  
31992201525
31992201626
31992201727
31992201828
31992201929
41993  
51994  

 

 

 

Thank you so much!!!

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @timol ,

 

What you have to do here is first join your data on Company ID and then use a Union tool.

 

AngelosPachis_0-1616779735807.png

 

 

A more advanced way would be to use a Join Multiple tool, that will provide the same output.

 

Hope that helps,

 

Angelos

Kenda
16 - Nebula
16 - Nebula

Hi @timol 

 

In this case, you'll actually want to start off with a join tool. Join your two datasets by the Company ID field. From there, use a Union tool to keep the L & J outputs. This should get you the output you're looking for.

 

Hope this helps!

 

Kenda_0-1616779764860.png

 

Labels