Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Lookup Help ( Find & replace or join)

tep_49
7 - Meteor

Hi Everyone,

 

I have these two tables and I want to join them on name column 
providing the condition that if name from table 1 is available in table 2 then return the code
cant use join tool as there is no way to custom
would appreciate any help.

 

sample22.png

5 REPLIES 5
rzdodson
12 - Quasar

@tep_49 I would personally do a Text to Columns for the second table and use the Split to Rows option in it. Then, use a Join tool to combine the two tables based on Name to bring in the Code field.

 

Solution.png

ScottLewis
11 - Bolide

This is a job for the text to columns tool with the split to rows option selected. Once that's been done, the join is standard.

Notably, once text to columns has been applied, the second table actually becomes the output you want without joining, but I assume your actual data is more complex and thus you still want the join.

 

 

Lookup Help.PNG

tep_49
7 - Meteor

Hi ,

 

Appreciate your help.

 

It works fine, I'm just afraid of the extra records I'm getting when doing the inner join using the name.

In my use case I want to ensure that I have only the records that are available in table 1.

any advice on that please?

tep_49
7 - Meteor

Hi 

thanks for the help.

 

I'm receiving duplicate rows when doing the inner join. 

and In my table 1 I dont have a unique idenifier to get the correct records from table1.

 

any advice on getting only the table 1 records after the join?

rzdodson
12 - Quasar

@tep_49 you can put a Unique tool, connected to the J anchor, and then select all to drop duplicate entries.

Labels
Top Solution Authors