Alteryx Designer Desktop Discussions

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

Union tool configuration

crdavis0902
5 - Atom

Hello,

 

I was wondering if there was a way to configure the union tool to create a unique ID for each dataset attached to it. Therefore, if I want to identify specific records after the data has been unioned based on their original dataset, I would be able to.

4 REPLIES 4
binuacs
20 - Arcturus

@crdavis0902 I don't think there is a such configuration in the union tool but you can add some identifiers just before the union tool using a formula tool, make sure the identifier name is the same when you assign. Something like the attached workflow

 

binuacs_0-1682358530640.png

 

nagakavyasri
12 - Quasar

You can use RecordId after Union tool for unique identifier.

Screenshot 2023-04-24 143523.png

Dina
9 - Comet

If the data came from multiple Input Data tool, you can add file name into the dataset. Below is the configuration. 

Dina_1-1682370594498.png

 

SeanAdams
17 - Castor
17 - Castor

I'd also put record IDs (using a record ID tool) on each of the streams before hitting union - along with a dataset name (using a formula tool).

That's a very very common pattern, and an easy way to keep track!

 

@Dina idea of the filename on the input would eliminate the need for a dataset name.

Labels