Hi
Does anyone have a more elegant way than in the attached workflow of doing the following:
- Reading in a CSV file that has an unknown number of garbage rows at the top
- Find the row that begins with a certain string (which also happens to be the table headers)
- Remove the unwanted rows
- Move the headers up to be the field names
My workflow currently
1. reads the file in as ascii text
2. adds a recordId
3. finds the recordid of the header row
4. makes a 'join multiple' back with the main data file by record position to place the start position value at the first row
5. 'fills down' the start position
6. filters on recordId gt / equal startposition
7. splits columns by comma and moves headers up to by field names
I am sure steps 2-6 can be done more elegantly, any ideas?
More generally, is there a better way to filter rows that have a row number greater than some dynamic value without using a macro to pass in that dynamic value as a parameter?
Cheers