Alteryx Designer Desktop Discussions

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

Find and replace: append unknown or dynamic fields

taniajurik
5 - Atom

Hi,

 

I am new to Alteryx and would need your help please. 

 

I have to tables that I would like to join. I need to get monthly data from the second table to the first one

Key 1# Invoices
Austria1234
Switzerland23412
Austria87332
Belgium8901
USA90184
Germany28117
Japan8149

 

Key 1# Invoices  APR 2024# Invoices  MAY 2024# Invoices  JUN 2024# Invoices  JUL 2024
Austria12391047
Austria87396102
Belgium89029103
Switzerland2340856
USA9018964

 

Simply doing it with Find and Replace: append fields to record. 

But next month layout of table 2 will change and will have one more column: AUG 2024.

 

I would like to avoid selecting new field manually. With the Select tool I choose Dynamic or Unknown field option, those fields are passed then to the Append fields list in Find and Replace tool, but checkbox still needs to be manually ticked. 

 

Capture.PNG 

Capture1.png

 

 

 

 

 

Please advise how to solve this.

Thank you!

 

4 REPLIES 4
Ankur_BDO
7 - Meteor

Thanks for sharing your solution. For combining the column from two tables horizontally, you should use the Join Tool, and apply join on "Key 1 " field. I have added a Union tool to show all item even if they are not present in the monthly invoices. Sort tool takes care of the List order. With this flow you can change the input file and the new month's data will come automatically. Replace the Text Input tools with your Input tools. See the sample workflow in the attachment.

If you got your answer, mark the response as Solution.

OTrieger
13 - Pulsar

Hi @taniajurik 

You are on the correct path almost there. If you will input the file with the months each time select the most up to date file and then append the new month to that file then you will not have an issue as long as that new month have the same name each month and then after appending it you could rename it with the new month.

TUSHAR050392
11 - Bolide

Hi, In your case, I will use the join tool first table will be joined to left side and second to right on Key1. After this, use the union tool and input J & L stream from the join tool and that way you won't miss any values from the first table if they have any match in the second table. This will also ensure that any new column that you add to the second table automatically flows without the need to manually select. Hope this helps and explains the reasoning.

taniajurik
5 - Atom

Thank you, it worked!

Labels
Top Solution Authors