Alteryx Designer Desktop Discussions

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

Split out Column into 2 Columns using another column as delimiter?

Bobbins
8 - Asteroid

Good Morning All,

I have a data import where I need to ignore some rows, then capture some rows, and then capture some rows again for some further data analysis (using select I can run various paths for each column once split)

I have been able to identify the header rows (which are identical) where I need to break, and I know I can delete everything above the first header row, but how would you extract out the data beyond this? The number of rows varies sadly.

Thank you

Example data:

DataHeaders Flag
Data String to be Ignored

0

Data String to be Ignored0
Data String to be Ignored0
This is my header row1
Data String to be processed now0
Data String to be processed now0
Data String to be processed now0
Data String to be processed now0
This is my Second header row (its identical to first header row)1
Data String to be processed Later0
Data String to be processed Later0
Data String to be processed Later0

 

To This:

This is my header rowThis is my Second header row (its identical to first header row)
Data String to be processed nowData String to be processed Later
Data String to be processed nowData String to be processed Later
Data String to be processed nowData String to be processed Later
Data String to be processed now 


Thank you

5 REPLIES 5
TheOC
15 - Aurora
15 - Aurora

hey @Bobbins 

I believe i have what you need, with a little bit of a lengthy workflow but it should be dynamic if you have more header rows:

TheOC_0-1639055013812.png

 

TheOC_1-1639055020556.png



Attached is the workflow,

Thanks.
TheOC


Bulien
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Bobbins,

 

In a slightly different method to @TheOC I went for a route that didn't involve joining:

 

JonathanSherman_0-1639057384946.png

 

 

I've attached my workflow for you to download if needed!

 

Kind regards,

Jonathan

afv2688
16 - Nebula
16 - Nebula

Hello  @Bobbins 

 

If you already got the header flags it is fairly simple then.

 

Got you here an example 🙂

 

Regards

Bobbins
8 - Asteroid

Thank you so much @afv2688 , @Jonathan-Sherman , @TheOC  all of them are perfect answers and work just fine for me, great to see different ways of viewing a problem. I'm unsure whom to mark as the correct solution so sellected the OC as I think he got in first, but please correct me if am wrong!

TheOC
15 - Aurora
15 - Aurora

hey @Bobbins 

If im not mistaken, you can mark multiple as solution.

In any case - I'm happy the solutions were suitable, and interesting to see the different approaches.

Cheers,
TheOC


Bulien
Labels