Alteryx Designer Desktop Discussions

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

Hi I have a problem separating data stuck in one column

KamalChoudhary
7 - Meteor

Hi,

 

I'm  trying to separate data stuck in once cell of file hosted on webpage, we are able to get it via download tool 

 

1- using delimiter  \n  we are able to split it into multiple rows 

1,2,abc,dfg
4,xyz,xdf,fdgd,fhdhf
5,ght,asdf,qwe

 

2 - now we need to split the data into columns using delimiter comma ","but each row data is not fixed we are not sure how many column will be there so we can split it to columns

because using text to column we need to define how columns 

 

12abcdfg 
4xyzxdffdgdfhdhf
5ghtasdfqwe 

 

Im using text to column tool , relevant tools I could use with this one. Can anyone help me with this one pls?

9 REPLIES 9
atcodedog05
22 - Nova
22 - Nova

Hi @KamalChoudhary 

 

One thing you can do is set the number of columns to really high number in text to column tool like below.

atcodedog05_0-1629224081266.png

Then you can use data cleanse tool to remove null rows.

atcodedog05_1-1629224126524.png

 

Hope this helps : )

 

KamalChoudhary
7 - Meteor

Hi @

 

Thanks helping, t have tried the workflow you have suggested but I'm not getting option option remove null data in my Alteryx designer version (2020.1.2.24185) it is because of the version 

KamalChoudhary_0-1629263972975.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @KamalChoudhary 

 

You can try this workflow. I am splitting to rows get seq number using tile number which is converted as column name.

atcodedog05_0-1629265151766.png

 

Hope this helps : )

 

KamalChoudhary
7 - Meteor

 

Hi @

implemented the above solution and it work,  as the data was coming from file hosted on web page so by default first column was link from where data is coming, 

 

After using download tool,  using delimiter  \n  we are able to split it into multiple rows and  select the column which is required (which is second column)

 

Then again split the column using delimiter comma and using the title tool and cross tab able to get desired result.

 

Thanks for help much appreciated.

 

KamalChoudhary_0-1629272066514.png

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @KamalChoudhary 

Cheers and have a nice day!

KamalChoudhary
7 - Meteor

Hi @

 

I have one more follow on doubt is it possible to concatenate  Headers 3,4,5,6,7,..... dynamic number of headers  changes every time based on file input as discussed earlier post

while doing concatenatination keep header 1 and 2 in the output data as shown in the below example 

 

Input Data 

Header 1Header 2Header 3 Header 4 Header 5 
.5SP07954VPSNXPNXP
.HKL5321586VTSHKPHKP
.5697P86PHKPVPSMSP
.55897LEFTNXPVTSVPS
.MXP01RIGHTMSPMSPVTS

 

Output Data

Header 1Header 2concatenate Headers Header 3 Header 4 Header 5 
.5SP07954VPS,NXP,NXPVPSNXPNXP
.HKL5321586VTS,HKP,HKPVTSHKPHKP
.5697P86PHKP,VPS,MSPHKPVPSMSP
.55897LEFTNXP,VTS,VPSNXPVTSVPS
.MXP01RIGHTMSP,MSP,VTSMSPMSPVTS
atcodedog05
22 - Nova
22 - Nova

Hi @KamalChoudhary 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1629438607814.png

 

1. Using record id to set row unique id

2. Using transpose tool select all the key data columns rest will be by default selected as value columns make sure dynamic or unknown column is checked this way any new columns will be selected in values.

3. Using summarize tool groupby record id and concat values.

4. Using find and replace to map the concat values to main data.

 

Hope this helps : )

KamalChoudhary
7 - Meteor

Hi @atcodedog05 

 

I'm using find and replace to append columns in Table1, Not sure how to append dynamic columns 

 

Problem = column are dynamic not fixed changed every time based on input ( using {Append fields to records} of find and replace tool)

KamalChoudhary_0-1643396842632.png

 

 

 

 

Table1  Find column 2 i.e. ID

itemid 
123549
456666
7896614

 

 

Table2   and match  in Replace field  column 2 i.e. order-ID

Recordorder-ID1234567

1

549xyzabc     

2

666mhldef     
36614ghijakmnoqwetyuewsghj
4789pqrstu     

5

899fghklj     

 

Expected Result only ids which matching with table 2 append columns 

itemid 1234567
123549xyzabc     
456666mhldef     
7896614ghijakmnoqwetyuewsghj

 

atcodedog05
22 - Nova
22 - Nova

Hi @KamalChoudhary 

 

Sadly find and replace append option cannot accommodate dynamic columns. As suggested in the other post you might have to use join tool.

 

Hope this helps : )

Labels