Free Trial

Alteryx Designer Desktop Discussions

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

Separate and Assign Columns to Other Columns

Eduardomejia189
5 - Atom

Hello I was wondering if it was possible to separate and assign columns to other columns (Hopefully makes sense) Im trying to do something like this for other data but heres the vision. The blank is intentional! But if I could get a visual that would be great since im fairly new to alteryx thank you!!!!

 

Data Ex. 

ColorGreen
ColorBlue
ColorPurple
GreenLight Green
GreenDark Green
Blue 
PurpleDark Purple
PurpleLavender
PurpleViolet

 

Desired Outcome: 

ColorGreenLight Green
ColorGreenDark Green
ColorBlue 
ColorPurpleDark Purple
ColorPurple

Lavender

ColorPurple

Violet

2 REPLIES 2
KGT
11 - Bolide

Looking closer, you already have the groupings... Filter on [Column1]="Color" and then Join the 2 outputs and a union for the results (may require creating some fields)

AlteryxGui_OsyvHwUihV.png

The way I would go about this is to tag rows based on the header that you want and then use a crosstab.

 

So, using a formula tool, create a field with 

IF [Column] IN ("Green","Blue","Red","Purple") 

THEN "Primary"

ELSEIF Contains("

shancmiralles
11 - Bolide

hi! 

I used a filter tool for your data. then i filtered your first column for the word "color" . 

 

Your T output should have:

column1column2
ColorGreen
ColorBlue
ColorPurple

 

Your F output should have:

column1column2
GreenLight Green
GreenDark Green
Blue 
PurpleDark Purple
PurpleLavender
PurpleViolet

 

after this i connected a Join tool.  So:

 

Filter tool              |  Join tool

True Output ----> Left Input Anchor

False Output  -->Right  Input Anchor

then for the Join Tool Configuration i join them by Left: Column 2 <- -> Right: Column1

 

Keep all column for left and just uncheck Right - Column1 

 

output is:

column1column2Right_column2
ColorBlue 
ColorGreenLight Green
ColorGreenDark Green
ColorPurpleDark Purple
ColorPurpleLavender
ColorPurpleViolet
Labels
Top Solution Authors