This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Dear frnds, I am new to alteryx , much help will be appreciated. Problem : I am attaching sample of my input files .. I have 100 Plus such files .. format remain same for each file but headers differs. We can skip first 5 rows and make the 6 th line as header . Desired output : I am attaching the sample output . Since the header in all the files remains between jan to Dec , I would like to combine all the files into one by population the data for the respective header name (months) I have 100 Plus files so I would like to automatically read the files from the folder . Please help me to provide the solution for this . Thank a lot
I built a little batch macro for you that can read in all the files for you. It was a bit of a pain getting all the headers to align as the dates came up in all sorts of formats. It might give some issues with your other files - then you just need to adjust the workflow for these scenarios.
Attached is a workflow with supporting macro to read in a directory of XLSX files, with a known and consistent data structure, parse and reshape as requested.
Tool that will need to be adjusted: Directory tool, point it to your directory
If the message tool errors because you have a new month format: Formula tool with the caption "Fix date text format", you would need to change this if there was a new month format in the month header, currently it will parse "2017-0-01" and "Jan-2017" style formats. The message tool will Error if there is a new data format.
If your data structure changes: Two filter tools with expressions like "[RowID]=7","[RowID]>7", you would change this your header structure changed, 7 is the final header row with the month headers Text Input with known columns, if you had new columns or wanted different field names, also if you had more columns you would adjust the RecordID tool as well. 5 is the start of the month columns.
I noticed that one of your files was a duplicate, would you like duplicate data to be removed?