Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

How to create two columns from data in one column

Rik1983
5 - Atom

Hello. I hope you can help me, because I struggle with this one. I want to create two columns from my sample data. See attached the 'raw data' and the desired outcome. 

6 REPLIES 6
grossal
15 - Aurora
15 - Aurora

Hi @Rik1983,

 

here is a quick example to do this:

 

grossal_0-1586940982780.png

 

Output: 

grossal_1-1586940992988.png

 

Workflow attached. Let me know what you think.

 

Best

Alex

 

Rik1983
5 - Atom

Thanks for this! Too easy! However my sample date is unfortunately not the real life. The name of the persons are different. So the "contains person" will not work for me... Any other suggestions for this? 

grossal
15 - Aurora
15 - Aurora

Can we ensure that we will always have 13 rows? Or has the Client always a couple whitespaces in front?

 

We need some rule to split it.

RolandSchubert
16 - Nebula
16 - Nebula

Hi @Rik1983 ,

 

if the "person" rows are not indented, but the client rows are, it could be a solution to use indentation:

15-04-_2020_12-31-25.png

 

Let me know, if it works for you.

 

Best,

 

Roland

Rik1983
5 - Atom

This is briljant. I didn't even know that this formula existed! In fact what happens is the count of the white spaces before the "client name"? And based on this you have a "unique" ID for the client. 

Rik1983
5 - Atom

Correct - the white spaces before client is always the case. Thanks for your help!!

Labels
Top Solution Authors