Alteryx Designer Desktop Discussions

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

Comparing multiple values from 2 columns

Dilver_Shaik
7 - Meteor

 

Hi Team, need help with below scenario how to get in Alteryx. Below is my source data

 

Branch IDHead IDBranchHead
1234567890Mexico, Columbia, Delhi, ParisColumbia, Paris, Rome, Italy, New York
0957612658Srinagar, Chennai, HyderabadHyderabad, Chennai, Mumbai, Pune

 

 

Expected Output is to display the values that are in Branch and not in Head i.e., Mexico & Delhi for the first row.

 

Branch IDHead IDBranchHeadDifference
1234567890Mexico, Columbia, Delhi, ParisColumbia, Paris, Rome, Italy, New YorkMexico, Delhi
0957612658Srinagar, Chennai, HyderabadHyderabad, Chennai, Mumbai, PuneSrinagar

 

Any help is much appreciated.

 

 

Thanks & Regards

Dilver

2 REPLIES 2
DataNath
17 - Castor

Here's one way you could go about this @Dilver_Shaik. This approach:

 

1 - Splits out all of the branches into their own rows

2 - Filters out records where either field is empty (useless comparison) and then also those where head contains branch

3 - Summarizes to re-concatenate the remaining 'Branch' as [Difference]

4 - Re-joins to the main dataset for the original Branch details

 

DataNath_2-1662020759348.png

Dilver_Shaik
7 - Meteor

Thanks @DataNath  - It Works

Labels