Start Free Trial

Alteryx Designer Desktop Discussions

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

How to create a flag(Calculated field) using two sources in Alteryx?

Venamma
7 - Meteor

Hi Team,

 

I have two sources as mentioned below and I'm trying to create a calculated field Which can check the presence of the list of Corresponding Market offerings from second table in the first source.

Join wouldn't be the best solution here.

Source 1:

Account IDOPP IDMarket OfferingsAmount
A11M1100
A22M20
A33M310
A14M250
A45M420

Source 2:

Corresponding Market Offerings
M1
M3

 

Output:

Account IDOPP IDMarket OfferingsAmountFlag
A11M1100Y
A22M20N
A33M310Y
A14M250N
A45M420N

 

Can Someone please help me with the solution? 

2 REPLIES 2
Andreina
Alteryx Alumni (Retired)

Hello @Venamma ,

 

I've done it this way:

 

1) Create a field called Flag with "Y" value next after Source 2

2) Use Find-Replace tool with "Append Fields To Record " configuration and Append new field Flag 

3) Replace null values with "N" values

 

 

Here you'll find attached  the workflow,

 

Hope it helps, 

Andreina

 

ChrisTX
16 - Nebula
16 - Nebula

You can use Join, but you'll need to add a Union to combine the joined and left-unjoined data streams.

 

ChrisTX_0-1659610137953.png

 

 

Chris

Labels
Top Solution Authors