Alteryx Designer Desktop Discussions

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

Split a delimited txt file to multiple xlsx.

maaz
6 - Meteoroid

Hello,

 

I have a txt file which when converted to csv looks like this:

IDKEYHumidCoolName
ABC110(null)Apple
ABC12P0Orange
XYZ13A0Mango
XYZ14X0Banana
ABC25T0Pineapple
XYZf26R0Pears

 

I want to split the above table on basis of different ID into multiple different xlsx file as output, so we have 1 workbook for each unique ID field.

Any idea how I can implement the same?

7 REPLIES 7
ShankerV
17 - Castor

Hi @maaz 

 

You can achieve with the help of Output tool.

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @maaz 

 

The below setting in the output tool helps to achieve your expected output.

 

ShankerV_0-1673598040562.png

 

ShankerV_1-1673598065154.png

 

Many thanks

Shanker V

 

 

 

 

maaz
6 - Meteoroid

Thanks @ShankerV for your reply.

 

I want the output in different workbooks and not worksheets.

Also the number of unique ID can be updated in the future so I can't use the filter tool in this case.

ShankerV
17 - Castor

Hi @maaz 

 

Sure, that's possible in different files also.

ShankerV
17 - Castor

@maaz 

 

To save in different files.

 

Output:

ShankerV_1-1673598462131.png

 

ShankerV_0-1673598620491.png

 

 

 

ShankerV_0-1673598429977.png

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

 

ShankerV
17 - Castor

Hi @maaz 

 

Yes, the workflow will be more dynamic without filter so it can work if any more unique are added in future.

 

ShankerV_1-1673598798852.png

ShankerV_2-1673598826624.png

 

Note: 

Please change the highlighted path based on your destination folder to save.

 

ShankerV_3-1673598898778.png

 

Many thanks

Shanker V

 

maaz
6 - Meteoroid

Works like a charm.

Thanks @ShankerV 

Labels