Alteryx Designer Desktop Discussions

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

Splitting columns

ssubramanian
8 - Asteroid

Hi,

 

I have a requirement:

Input: 

SegmentLBDept
S1,S2L1D1,D2,D3
S2,S3L2,L3D4

 

Output: 

 

SegmentLBDept
S1L1D1
S1L1D2
S1L1D3
S2L1D1
S2L1D2
S2L1D3
S2L2D4
S2L3D4
S3L2D4
S3L3D4

 

 

This is just an example I have 7 such columns with different combinations. Right now I am using text to column tool for each of the 7 columns (7 Text to Column tools). Is there a way to do this in fewer steps?

 

 

12 REPLIES 12
DavidP
17 - Castor
17 - Castor

Yo can use the split to rows option in the Text to columns tool

 

split to rows.png

ssubramanian
8 - Asteroid

Attaching the workflow I am using. Please suggest a more efficient method.

ssubramanian
8 - Asteroid

Hi @DavidP,

 

Thank you for the solution. I am currently using this method. Could you please suggest another method with fewer steps as the workflow would be lengthy with the increase in number of columns.

DavidP
17 - Castor
17 - Castor

I had to sleep on it a bit.

 

Here's an iterative macro that can solve the problem for a number of columns.

 

split cells macro.pngsplit cells.png

ssubramanian
8 - Asteroid

Hi @DavidP,

 

Thank you so much for spending time on this. Unfortunately, I am unable to load the workflow as I am using an older version of Alteryx. I am re-creating the entire workflow in my Alteryx Designer. I will let you know once I execute it.

 

Thanks again!

DavidP
17 - Castor
17 - Castor

Have you seen this app from Marquee Crew on the Alteryx Gallery? It converts Alteryx workflows to older versions:

 

https://gallery.alteryx.com/#!app/Modify-Alteryx-Workflow-Version/5773f9c33df7da0e58dc82d3

DavidP
17 - Castor
17 - Castor

Which version of Designer are you using?

ssubramanian
8 - Asteroid

That's awesome. I will try it out. Thank you @DavidP

ssubramanian
8 - Asteroid

I am using "2018.2.4.47804" Version.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels