Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Need Help in importing data in alteryx

puja123p
6 - Meteoroid

Hi. I have some data which I need to import in alteryx. Can anyone help in importing the same.

I have attached a sample file here.

 

I am using a Regex tool to insert a delimiter so that I can convert it using text to column tool, but i am not able to understand which expression i should use to get data of "Description" in one delimiter.

 

The output would be.

 

puja123p_1-1681215503340.png

 

Thanks

8 REPLIES 8
PhilipMannering
16 - Nebula
16 - Nebula

Does this do what you need?

PhilipMannering_0-1681215279857.png

 

cjaneczko
13 - Pulsar

Import it is Text.

 

cjaneczko_0-1681215371802.png

 

Then select the following highlighted below. And it should work ok.

 

cjaneczko_0-1681215522291.png

 

cjaneczko
13 - Pulsar

Actually, My post wont work for your solution. The post above will. I just noticed is splits out too many columns based on the spaces.

 

puja123p
6 - Meteoroid

Hi Philip Mannering

I Have attached the output in the query. The workflow is not giving the desired result and also the amount is getting separated by comma when it should come in single column.

PhilipMannering
16 - Nebula
16 - Nebula

Ah, I see. What about this?

PhilipMannering_0-1681216105512.png

 

cjaneczko
13 - Pulsar

Is there any way to get your data source to output with Commas or Quotations around the data. You'd likely need to use regex to parse the data correctly, as its difficult to determine where the breaks are with the spaces.

puja123p
6 - Meteoroid

Thank you

HomesickSurfer
12 - Quasar

@puja123p , improt as fixed width text, without separators or separating lines, then make use the 'GetWord' formula expression to create your columns and applicable values.  Given that your data has 4 consistent numeric values at the end columns, I've used ReverseString on records 2+ and then ReverseString(GetWord([Field_1], 0)) for the total and repeat the process. 

HomesickSurfer_0-1681217844751.png

HomesickSurfer_1-1681217872560.png

 

Labels
Top Solution Authors