Alteryx Designer Desktop Discussions

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

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

srk0609
Asteroide

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 RESPONDER 1
binuacs
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

Enquetes
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!
Rótulos