Alteryx Designer Desktop Discussions

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

Dynamic join

davidogundipe
8 - Asteroid

I have two files. I want to get the maximum payment amount of an individual using the join tool. We'll call the two files data1 (excel spreadsheet) and data2 (excel workbook). Data1 has three fields: name, age at retirement, and year of payment (either 2019 or 2020). Data2 has two fields: age and maximum payment. The maximum payment of each age changes between 2019 and 2020, so there are two spreadsheets in the data2 workbook, one for 2019 and one for 2020. Is there a way to dynamically switch between the two spreadsheets to retrieve the correct maximum payment based on the year of payment in the data1 spreadsheet? 

 

Example:

 

Data1

NameAge at retirementYear of Payment
John D.302019
John D.302020
Jane D.352019
Jane D.352020

 

2019 spreadsheet in Data2 workbook

Age2019 Max
305000
356000

 

2020 spreadsheet in Data2 workbook

Age2020 Max
304000
354500

 

Result

NameAge at RetirementYear of PaymentMaximum
John D.3020195000
John D.3020204000
Jane D.3520196000
Jane D.3520204500

 

I tried using the dynamic input tool, but I didn't implement it correctly. Please let me know if there's a solution. Thanks!

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @davidogundipe ,

 

I have used a dynamic input to solve this issue. Have a look at the following workflow and how the tools are configured, I think it may help

 

Workflow

 

Screenshot 2020-11-03 214214.jpg

 

Output

 

Screenshot 2020-11-03 214412.jpg

 

Regards,

 

Angelos

davidogundipe
8 - Asteroid

Thanks so much! This worked. 

Labels