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

Alteryx Designer Desktop Discussions

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

Performing Vlookup or Find/Replace to show multiple possible matches

dpakapd
8 - Asteroid

I have 2 sets of data available, a sample of which I am showing below.

 

Dataset A:

Part NumberProduct Code
1A-45XD1234
1D2B3C4567

 

Dataset B:

Part NumberMaster Prod Code
1A-45XD1234
1A-45XD0408
1D2B3C4567
1D2B3C0816

 

How can I perform a Vlookup or Find/Replace such that I get an output as shown below:

 

Part NumberProduct CodeMaster Prod Code
1A-45XD12341234
1A-45XD12340408
1D2B3C45674567
1D2B3C45670816

 

I tried with the standard 'Find Replace' tool in Alteryx but it catches only the first match for each part number.

I have close to 60,000 rows of distinct part numbers. So setting a filter for each part number does not seem feasible.

 

Thanks,

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @dpakapd ,

 

If you make sure that all part numbers in Dataset A are unique (i.e. they only appear once) you can use a join tool to get the output you're after

 

AngelosPachis_0-1640111728614.png

 

 

 

dpakapd
8 - Asteroid

Thanks @AngelosPachis.

I also tried by changing the order of the Find-Replace, i.e. swapping the nodes that go to Find and to replace and I was able to get a similar output.

dpakapd_0-1640112031856.png

 

 

I will try yours in my full dataset.

 

Thanks again!

Labels