Free Trial

Alteryx Designer Desktop Discussions

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

Create new column based on which dataset the row is coming from

srk0609
8 - Asteroid

I created a union of 2 same tables I want to create a new column that would have value A if the row comes from Dataset A and value B if the row comes from Dataset B. I'm attaching the screenshot of the wf, output. Can you please help me create a new col? Thank you. I'm using yxdb files as i/p in actual wf.

recordcol 1col 2new col
120100A(COS COMING FROM 1ST TABLE)
230200A(COS COMING FROM 1ST TABLE)
320100B(COS COMING FROM 2ND TABLE)
430200B(COS COMING FROM 2ND TABLE)
1 REPLY 1
binuacs
21 - Polaris

@srk0609 Add formula tools after the input tools, create a column and update the value "Value from DataSetA" and in the next formula tool "Value from DatasetB" then union the results

image.png

Labels
Top Solution Authors