Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic input/Union/Batch macro for csv files in different schema

askoczylas007
6 - Meteoroid

Hi Alteryx Masters!

 

I have a problem with combine a few csv files in different schema. I want to receive results like with using the Union Tool. 

 

union.PNG

 

I tried to use the batch macro and dynamic input but all values from second and third file goes to the columns from the first file.

 

dynamic.PNG

 

I would like to avoid using the Union Tool because in workflow it is supposed to be used for a large number of files and I want it to reads all files from a given folder.

Please help :)

7 REPLIES 7
binuacs
21 - Polaris
askoczylas007
6 - Meteoroid

Unfortunately not :( I've tried to use all of the solutions from this post before and I am not receiving excepted output. 

binuacs
21 - Polaris

@askoczylas007All your files are having different column names ? In the batch macro can you check the option selected ‘ Auto configure by name’ in the interface designer 

 

 

askoczylas007
6 - Meteoroid

Let's say that only one column is the same in each file. You can see it on the screen below - this is the result after using Union tool.

askoczylas007_0-1678968333241.png

This is what I am receiving using dynamic input

askoczylas007_1-1678968401724.png

 

When I am using batch macro which is configured by Name.

askoczylas007_2-1678968476101.png

 

 

binuacs
21 - Polaris

@askoczylas007 Can you connect the batch macro to a browse tool and run again and check the result from the browse tool ?

askoczylas007
6 - Meteoroid

OMG! I was so simple! Thanks a lot. 

askoczylas007
6 - Meteoroid

askoczylas007_0-1678969314760.png

 

Labels
Top Solution Authors