Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

split data with same codes

MZ900605
8 - Asteroid

hello guys, I need help in using Alteryx to split the data with the same codes, maybe the tool exists or I should do a macro.

the data is 10K rows looks like:

Codereport
123a
555f
123b
123a
555a
555w
897e
897r
123c
555a
897b

 

I want to make an output that looks like

Codereport
123a
123b
123a
123c

 

Codereport
555f
555a
555w
555a

 

Codereport
897e
897r
897b

 I hope this makes sense, to have separate files that have the common code.

Thanks any help is appreciated.

 

5 REPLIES 5
JosephSerpis
17 - Castor
17 - Castor

Hi @MZ900605 you can do this with the output tool and using the option Take/file/table from field which is your case would be the code column. I mocked up how you can do this.

Christina_H
14 - Magnetar

A lot of the tools in Alteryx have a grouping option for this type of thing.  Assuming you just want to output the above tables, something like this would work:

Christina_H_0-1638782480086.png

Note at the bottom I've checked the option to "Take File/Table Name From Field".  With the option I've select (Change File/Table Name) this should output to a single Excel file with a tab for each code.

MZ900605
8 - Asteroid

@Christina_H am doing it and it keep writing the error (You must specify sheet name.) am choosing to create new sheet, even wrote sheet name when adding the output tool.

MZ900605
8 - Asteroid

@JosephSerpis I changed to my file path but its not outputting anything

Christina_H
14 - Magnetar

@MZ900605 If you're copying mine exactly, I'd missed out a \ in the path, it should be .\Filename.xlsx|||Sheetname

Christina_H_0-1638786015441.pngChristina_H_1-1638786037398.png

You can also enter an absolute path rather than relative, or generate the correct filepath for each row in a formula tool and use that for grouping with the option "Change Entire File Path" (remember to include the sheet name for Excel though)

Labels
Top Solution Authors