Alteryx Designer Desktop Discussions

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

Joining 2 tables with no common field/ i created a field mapping

hay_001
7 - Meteor

Hello,

 

I tried joining two tables with no common field, but could not figure it out.

 

Both tables has over hundreds of records. I have also attached a sample file with different tabs of data.

 

Mapping of fields

 

Name_idCar_id
AIM21aaims
AO21all
AR21ro
ATL21atl
BAY21 
BH22bh
BUR21bhdc
CC820 
CHV21eys
CLR21stone
CO21idad
CPT2021copton
CPT21den

 

Table 1

 

IdName_idValueLocation
5e-3b68638bd140AIM21SERSNew York
3r5-46788CPT2021CaptGermany
343678CLR21RectNorway
281930CC820CRIDIndia

 

Table 2

 

 

Car_idQtyYear
aaims21/15/2022
copton511/19/2019
stone1010/1/2021
 39/10/2020

 

 

Expected Result

 

IdName_idValueLocationCar_idQtyYear
5e-3b68638bd140AIM21AIMSERSNew Yorkaaims21/15/2022
3r5-46788CPT2021CaptGermanycopton511/19/2019
343678CLR21RectNorwaystone1010/1/2021
281930CC820CRIDIndia 39/10/2020
6 REPLIES 6
binuacs
20 - Arcturus

@hay_001 if you select join by position option you will get the desired result

 

binuacs_0-1659968221851.png

 

hay_001
7 - Meteor

@binuacs Thanks, but join with position option won't work. Both tables have over hundreds of records. 

DavidSkaife
13 - Pulsar

Hi @hay_001 

 

Here is a way of doing it, add the field mapping to Table 1, so that stream has the corrisponding value for Car_ID in Table 2, then join on Car_ID:

 

DavidSkaife_0-1659969956479.png

 

binuacs
20 - Arcturus

@hay_001 in that case you can use the multiple join tool to get the desired result

 

binuacs_0-1659971633381.png

 

hay_001
7 - Meteor

@binuacsThanks, that worked. That was a lifesaver.

hay_001
7 - Meteor

@binuacs That worked.. I appreciate both help..

Labels