Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to copy value from one column to another column

Jairacha
7 - Meteor

Hi,

 

I have a data set (below) where I want the value in column "Parent ID" to be copied to the column "COL1" if the value in column "MARKER" is "X". So for e.g. "Parent ID" of 1 is marked as X in column "MARKER", I want the "Parent ID" of 1 to be copied to "COL1" next to the "Parent ID" of 2. For clarity, the last table shows what the end result should look like.

 

MARKERParent IDCOL1COL2
X1 ABC
 2 ABC
 3 XYZ
X4 XYZ
 5 XYZ

 

The End result should look like this:

 

MARKERParent IDCOL1COL2
X1 ABC
 21ABC
 34XYZ
X4 XYZ
 54XYZ

 

Thank you for the help! Much appreciated!

3 REPLIES 3
messi007
15 - Aurora
15 - Aurora

@Jairacha,

 

Please see below how you can do it based on the explanation :

 

messi007_0-1636562849519.png

 

However I didn't get why you have 4 in COL1 for the Parent ID 3.

 

Attached the workflow,

Regards,

chuckleswk
11 - Bolide

You can split out your Marker columns and then join the T/F legs with each other as I've done below:

Capture.PNG

Jairacha
7 - Meteor

Thank you both for the replies! 

Labels
Top Solution Authors