Alteryx Designer Desktop Discussions

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

The headers

Abdelrahmanmahdy
7 - Meteor

Hi,

I have to remove the first 15 lines from the csv file input data to work with it.  I want to add these lines to the output excel file as the headers.

How can I do it ( the second part)?

5 REPLIES 5
Luke_C
17 - Castor

Hi @Abdelrahmanmahdy 

 

Some example would be helpful, but to start you could use a sample tool to isolate the first 15 records into one data stream, and then a second sample tool connected to the input that skips the first 15 records to compose your second stream of data.

cjaneczko
13 - Pulsar

Add a Record ID tool at the start of the workflow with a Filter Tool after it. Anything less than or Equal to 15 goes on the True side anything Greater than 15 goes on the False side. Then add a Union tool to the end of the workflow to add the 15 records back at the top of the output. 

Abdelrahmanmahdy
7 - Meteor

I want to add the first 15 rows above the headers in the output. see the below workflow and sample of the input.

geraldo
13 - Pulsar

@Abdelrahmanmahdy 

 

You can read the file with only the required 14 lines

geraldo_0-1684248847559.png

 

 

and generate as rows of data

geraldo_1-1684248678025.png

I didn't understand how you want a header to come out on top of the other data

Abdelrahmanmahdy
7 - Meteor

I am attaching the required output.

Labels