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.

Text to column import not working

Usamah22
8 - Asteroid

Hello

 

i have been importing data from a file which needs to be delimited by commas which i have been doing via the import tool.there are some commas in numbers that are 1,000 and above but the ignore delimiters in commas is not working which is resulting in the number being cut, so a number of 1,200 will come in alteryx as 1. below is what the data looks like and also the import tool setup. please help.

 

Usamah22_0-1607531890175.png

Usamah22_1-1607531970024.png

 

6 REPLIES 6
echuong1
Alteryx Alumni (Retired)

Are you able to upload a copy of the input to take a look at?

 

You can also try importing the data without delimiters, and then using the text to columns to delimit. 

Usamah22
8 - Asteroid

i've attached the data

echuong1
Alteryx Alumni (Retired)

Looks like I was able to successfully parse with the text to columns. For the text to columns you can adjust the number of columns made to match your data - looks like there are 19 but I selected 20 just in case (hence why there is an empty column at the end). I then used a multi-field formula to remove the quotation marks, a sample to remove the extra lines of headers, and a dynamic rename to bring the actual headers up.

 

It looks like there are a couple of fields that don't have headers (matches the original file as well), so check those.

 

Hope this helps!

 

echuong1_0-1607532946095.png

 

Usamah22
8 - Asteroid

it looks like i have an older version of Alteryx so cannot open this.

 

When i try to get rid of the comma in delimiters in the input tool it still splits the data into columns itself. I can't seem to input the whole dataset as it looks in the csv.

 

Usamah22_0-1607593195758.png

 

Usamah22
8 - Asteroid

i have copied your workflow from the image and it seems to work except when i then change the format from a vw string to a double it cuts the number again at the comma

echuong1
Alteryx Alumni (Retired)

That is expected, because the commas make the data text, not numeric. You cannot just use a Select to adjust the field type in that case. You need to remove the commas first.

 

I adjusted the multi-row formula to remove commas as well. Hope this helps!

 

 

echuong1_0-1607602762201.png

 

If this resolves your issue, please mark as solved so others can find answers more easily.

 

Labels
Top Solution Authors