Alteryx Designer Desktop Discussions

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

Need help creating logic to identify multiple values linked to another column

Hoss2434
7 - Meteor

Hello I am trying to create logic that will check if a value from column has a one to many relationship to a value in another column. Here is a before and after example of what I am looking for:

 

 

Before:

Customer#Color
1red
1red
2blue
2red

3

blue
3blue

 

 

After:

Customer#ColorBoth Colors?
1redNo
1redNo
2blueYes
2redYes
3blueNo
3blueNo

 

 

So in this example we can see that Customer #2 has a record of both "blue" and "red" for it's colors, and there fore the third column marked it "Yes"

 

If anyone can show me how to create a formula for this that would be greatly appreciated!

Thanks!

3 REPLIES 3
SPetrie
12 - Quasar

I think a summarize with count distinct should give you the info you want. Join the result back to the original data set to have it apply to each instance.

SPetrie_0-1678999707349.png

SPetrie_1-1678999743485.png

 

 

binuacs
20 - Arcturus

@Hoss2434 One way of doing this

binuacs_0-1678999987585.png

 

gaoa
11 - Bolide
Labels