I am an Alteryx noob. I am trying to solve for a very specific situation.
I have approximately 150 input files that I need to join together into a single table. each file consists of 7 rows of data in CSV format. The layout of each file is identical and looks something like this:
Row 1 = Header row
Row 2 = Data row
Row 3 = Null row (always present)
Row 4 = Header row 2 (completely different set of headers vs. the headers in Row 1)
Row 5 = Data row associated with headers from Row 5
Row 6 = Null row (always present)
For each file I need to import Rows 1 and 2, import rows 4 and 5, then append the fields from Rows 4/5 to the right of the fields in Rows 1/2. At the end of my workflow for a given file, I should have 1 data row and one header. At the end of the overall process, I should have 150 data rows and one header.
I have successfully create the flow to process one file and it works beautifully. However, I am struggling with how to generalize this into a macro so that I can feed multiple files into the process. How would I go about making a macro out of my single file process so that I can process multiple input files? Ideally, I'd like to feed a wildcard input into the macro to allow me to process as many files as are needed.