We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Data manipulation

AbhijeetChib
8 - Asteroid

Good Day Everyone 

 

I have a set of data where consists of 2 columns in which I am trying to arrive at the desired output column, Here is the data 

For every pair of numbers in group - if the corresponding Group 2 is AB or DEF then the output needs to be 0. 

If either one of the pair of Group has separate Group 2 value then they need to be 1. 

 

For example in the below table for the PAIR - 191846 in Group the corresponding Group 2 is AB and AB, Hence the result should be 0 and 0 for both records. 

 

For the PAIR - 191852 in Group the corresponding Group 2 is DEF and AB so they both need to be 1 and 1. 

For the PAIR - 191900 in Group the corresponding Group 2 is AB and DEF so they both need to be 1 and 1. 

 

I hope I have made the question clear. I would most definitely appreciate any ideas here. 

 

GroupGroup 2Desired Output 
191846AB0
191846AB0
191852DEF1
191852AB1
191860DEF1
191860AB1
191868AB0
191868AB0
191869AB1
191869DEF1
191871AB0
191871AB0
191874DEF1
191874AB1
191880AB0
191880AB0
191888AB1
191888DEF1
191894DEF1
191894AB1
191895DEF1
191895AB1
191897DEF0
191897AB0
191900AB1
191900DEF1
191901AB0
191901AB0
191902AB0
191902AB0
191903AB0
191903AB0
191904AB0
191904AB0
191905AB0
191905DEF0
191906AB0
191906AB0
1 REPLY 1
harshendra
8 - Asteroid

@AbhijeetChib please see attached. I used a summarize tool to group by 'Group' and count distinct 'Group2'. 

Labels
Top Solution Authors