Start Free Trial

Alteryx Designer Desktop Discussions

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

extract using delimiters

viditverma62
7 - Meteor

I have a data : ABC|001|BCE|2021 - Video-view-impressions-abc

i want to extract the data for first 4 delimiters pipes , i want to ignore after the hyphon

34 REPLIES 34
Luke_C
17 - Castor
17 - Castor

Hi @viditverma62 

 

You can use the text-to-columns tool followed by a string formula or regex to handle the dash. If your data is coming from csv, you can also set | as the delimiter. 

 

Luke_C_0-1621865565322.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @viditverma62 

 

You can configure text to columns like below. Delimiter is "| " (pipe & space)

atcodedog05_0-1621865593362.png

 

Hope this helps 🙂

 

Emil_Kos
17 - Castor
17 - Castor

Hi @viditverma62,

 

I have prepared a workflow for you.

 

Emil_Kos_0-1621865718247.png

 

Emil_Kos_0-1621865764593.png

 

 

My solution removes everything after the - hyphen

 

apathetichell
20 - Arcturus

text to columns and then regex_replace...

 

 

viditverma62
7 - Meteor

Thank you. let me tryy. 🙂

viditverma62
7 - Meteor

hello i tried to run that and append it to current workflow but i can see it got split into 4 diffrent columns which i dont want.

i want the data till first pipes in one columns only and rest to be ignored.

viditverma62
7 - Meteor

hello i tried to run that and append it to current workflow but i can see it got split into 4 diffrent columns which i dont want.

i want the data till first pipes in one columns only and rest to be ignored. What should i do ?

viditverma62
7 - Meteor

hello i tried to run that and append it to current workflow but i can see it got split into 4 diffrent columns which i dont want.

i want the data till first pipes in one column only and rest to be ignored. what should i do ?

atcodedog05
22 - Nova
22 - Nova

 Hi @viditverma62 

 

Are you looking for something like this. If not please provide expected output. We will be happy to help🙂

 

atcodedog05_0-1621868719420.png

 

Labels
Top Solution Authors