Alteryx Designer Desktop Discussions

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

Assigning a flag to a group if a specific value is contained within

golfromeo
7 - Meteor

Hello all,

 

Sorry if this is a basic question, but I couldn't find the answer after a lot of searching through the discussions!

 

I need to assign a Y/N flag to a category if it contains a specific value in another column. For example, if "ABC" is contained in the Supplier field for any of the companies, the flag should be Y for all the rows for that company. If there is no supplier ABC, then the flag should be N.

 

This is an example table for what I need:

 

CompanySupplierFlag
Company AhhhY
Company AwwwY
Company AABCY
Company BqqqN
Company BhhhN
Company BbbbN
Company CaaaN
Company CbbbN
Company CqqqN

 

I hope I've explained this well enough and hope you can help.

 

Thank you!

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @golfromeo I mocked up a workflow that produces the output you describe. Let me know what you think?

rituraj963
8 - Asteroid

Hi @golfromeo 

 

Let me know if this solution works for you.

rituraj963_0-1599157253038.png

golfromeo
7 - Meteor

@JosephSerpis This worked, thanks for your help!

golfromeo
7 - Meteor

@rituraj963 This solution also works, thanks very much!

Labels