Start Free Trial

Alteryx Designer Desktop Discussions

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

Split string value into two duplicated rows

Lucassis
5 - Atom

Hi,


I'm working on an Alteryx workflow and I need to split a string value in a certain column into two rows and keep the data in the rest of the columns. The slash in the string has to be deleted too.

The excel worksheet looks like this:

 

           First Name   Surname      Code          Validation

Row 1 Don              White           TRS            TRUE

Row 2 Jan               Clark            ITX/LPF     TRUE
Row 3 Frank            Black           AVW           TRUE

Row 4 Harry            Johnson      ITX/LPF       FALSE

 

Expected outcome:

 

           First Name   Surname      Code          Validation

Row 1 Don              White           TRS            TRUE

Row 2 Jan               Clark            ITX             TRUE

Row 3 Jan               Clark            LPF            TRUE

Row 4 Frank            Black           AVW           TRUE

Row 5 Harry            Johnson      ITX              FALSE
Row 6 Harry            Johnson      LPF             FALSE

    

What's the best way to achieve this?

 

Thanks in Advance!

 

Luuk

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Lucassis 

 

You can use Text to column tool like below.

 

Workflow:

atcodedog05_0-1635253606797.png

 

Hope this helps : )

 

Lucassis
5 - Atom

That works perfectly, thanks!!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Lucassis 

Cheers and have a nice day!

Labels
Top Solution Authors