Start Free Trial

Alteryx Designer Desktop Discussions

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

Consolidating multiple CSV files

SahadhKuruniyan
8 - Asteroid

I have received 20 CSV files from database which has same column headers. I need to consolidate it. It has different schema.

can anyone of you help me to create a macro to consolidate this. that would be biggest help!

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @SahadhKuruniyan 

 

Can you provide 2 sample files to work with.

 

Happy to help 🙂

messi007
15 - Aurora
15 - Aurora

@SahadhKuruniyan,

 

Please see below see the link below. It will help you to read many files at once.

 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/The-Ultimate-Input-Data-Flowchart/t... 

 

Regards,

 

atcodedog05
22 - Nova
22 - Nova

Hi @messi007 

 

That guide sadly only covers reading excel 😶

messi007
15 - Aurora
15 - Aurora

@atcodedog05,

 

Yup but you can adapte the macro Batch to read a CSV instead of Excel.

Below an example :

 

1- Batch macro to read a csv 

messi007_0-1643115798604.png

2- Call CSV with different schema 

messi007_1-1643115967462.png

 

Attached the workflow and the macro.

 

Regards,

 

Labels
Top Solution Authors