We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to select columns on Dynamic input

clarrock
8 - Asteroid

Hi,

 

I have multiple input files with different order of the columns but all of them have some common field names

Is it possible to input all these files by using the dynamic input tool by using a template that only includes the common field name?

 

The problem is that alteryx only unionises some of the files and ignores the others in the final output cause they dont meet the schema

How do i make sure that alteryx reads all the files and only the specific columns are in the output?

4 REPLIES 4
aatalai
15 - Aurora

@clarrock the dynamic input tool works only if the fileds are the same schema, a batch macro might help with what you are looking for though

apathetichell
20 - Arcturus

As mentioned numerous times ---- Dont use dynamic input - use a batch macro. 

OllieClarke
15 - Aurora
15 - Aurora

Hi @clarrock 

 

Here is a blog explaining how to build the batch macro you'll need. You can drop unwanted columns with a select tool

 

 https://knowledge.alteryx.com/index/s/article/CS-Macro-Dev-Reading-in-Multiple-Files-with-Different-...

 

Hope that helps,

 

Ollie

 

danilang
19 - Altair
19 - Altair

Hi @apathetichell 

 

Absolutes.png

 The right tool at the right time! 

 

Dynamic input is easier to use and much faster if you know that the files have the same schema.  Examples of these are automated reports, financials, etc.  On the other hand, if there's even a chance that schemas may change then a macro is the way to go!

 

Dan

Labels
Top Solution Authors