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

Text to rows, split the content into different rows

kv-defy
8 - Asteroid
MonthYearMay 2021June 2021July 2021May 2022June 2022

 

Originally I have this format, I would like to split the year and month while keeping the original MonthYear row. How do I split them accordingly? Similar concept to text to columns but now it is in rows.

 

Desired outcome:

MonthYearMay 2021June 2021July 2021May 2022June 2022
Year20212021202120222022
MonthMayJuneJulyMayJune
5 REPLIES 5
PhilipMannering
16 - Nebula
16 - Nebula

This should help get you started,

PhilipMannering_0-1655797075260.png

 

grazitti_sapna
17 - Castor

@kv-defy, another way of solving this problem.

grazitti_sapna_0-1655799070894.png

 

Sapna Gupta
Kurohits
10 - Fireball

Hi @kv-defy 

 

One of the other way of doing that. Find the attached solution workflow. 

 

Kurohits_0-1655799081357.png

 

AmalinaH
Alteryx
Alteryx

This should get your ideal output. The last three tools are just for renaming and sorting to get the ideal field names and sort by year first (if necessary).

 

 

This also works off the basis that the MonthYear row is your headers row and there are data rows below. Otherwise the first solution posted is good to go

 

MonthYearMay 2021June 2021July 2021May 2022June 2022

 

 

AmalinaH_0-1655798895543.png

 

 

Qiu
21 - Polaris
21 - Polaris

@kv-defy 
I am bit late for the party I guess.
In case you data comes as header only.

We can do something as below

I try to keep the order of the column with a RecordID and use Dynamic Rename to name it back.

0631-kv-defy.PNG0631-kv-defy-1.PNG

Labels
Top Solution Authors