We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Join two datasets with custom key

tanvir_khan
8 - Asteroid

Hi

I need to join two datasets but there is no straightforward join key.
example TABLE1.SCode = SUBSTR(TABLE2.FCode, 1, TABLE1.Length)
 
Table1
SCode|Length
561|3
78|2
6537|4
 
Table2
FCode|Name
561298|AAATR
23412|BBBAV
7892|ZZZA
653721|CCCA
 
The substring will match FCode of Table2 with SCode of Table1 as per length given in Table1. 
Need your expert advice to resolve it using alteryxplease.
thanks
2 REPLIES 2
vizAlter
12 - Quasar

Hi @tanvir_khan — Try this solution:

 

vizAlter_1-1604357118524.png

 

vizAlter_0-1604357086238.png

 

 

If this solves your issue please mark the answer "Solved" with a Like, if not let me know!

vizAlter
12 - Quasar

@tanvir_khan — Also, you may optimize the workflow by keeping the specific tools, like below:

 

vizAlter_0-1604357975559.png

 

If this solves your issue please mark the answer "Solved" with a Like, if not let me know!

Labels
Top Solution Authors