Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Format CSV Input

RaikmoH
6 - Meteoroid

Hi everyone,

 

I'm a newcomer to the Alteryx world and have trawled through the embedded help files in the application but have not found an answer to my question. I hope that someone here can help point me in the right direction! :)

 

I've got a link to survey data that is returning all the data in one column, warts and all. I need to parse it out so that the data is separated and then formatted into neatly presented columns with the relevant data under each column. I've got as far as creating the columns I need, however the data is all lumped under one column at the very end. I need to parse that column out so each cell in that column goes under each relevant preceding column. What's especially annoying is that some of the data that should be in one cell is separated by a space and, as a result, has ended up in separate cells. How would I go about putting the relevant data from each cell into its rightful column?

 

Tools used so far: Text to columns, Text to columns (split to rows), Dynamic rename, Select, Sample N Records.

 

Many thanks,

Dev

7 REPLIES 7
jdunkerley79
ACE Emeritus
ACE Emeritus

Could you post a sample of the input data.

 

Sounds like you are using the right kind of tools but easier to advise if can see the raw input.

RaikmoH
6 - Meteoroid

Hi, I've attached (at least I hope so) the Workflow file to this message, please let me know if it's come through or not. Thanks!

RaikmoH
6 - Meteoroid

Sorry, ignore that last one, it's got a step missing. This one attached is the one I'm working on right now.

jdunkerley79
ACE Emeritus
ACE Emeritus

Attached my quick go at it.

 

First break it into Rows: Text To Columns splitting on \r\n to Rows.

Then break it into Cells: Text To Columns splitting on , to Rows.

This will create a table URL, Row, Column, Value

Then using a CrossTab to make it URL, Row, Columns

Then use a dynamic rename to relabel.

 

Early on my Alteryx learning did a blog along these lines: https://jdunkerley.co.uk/2015/03/24/getting-started-with-alteryx-part-3-reading-csvs/

 

Hope this helps

 

RaikmoH
6 - Meteoroid

Thanks for the response, however I wasn't able to open the file you attached as it was made with a newer version of Alteryx. My version is listed as 10.1.7.12188. Is it possible that you can save your output to a version compatible with my version of Alteryx?

 

Many thanks! :)

jdunkerley79
ACE Emeritus
ACE Emeritus

Try this one... (but might not work!)

RaikmoH
6 - Meteoroid

You, sir, are incredible. Thank you so much!!

Labels