Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Find sub-content differences between 2 cells

pohrt
8 - Asteroid

Hello all, 

 

I have 2 cells in each row with values that are separated by commas (see simplified example). I need to compare the content and find the differences.

The real examples are longer (up to 200 comma delimiters) and I have something like 40 - 300 rows that have these strings.

 

I was thinking that I could

 

1) use the TEXT to COLUMN PARSE tool (since the delimiter is always a comma) to spread the Data A and Data B out to more columns

2) then I somehow need to compare each Column from Data A with each Column from Data B

3) I need to do this for each of the rows individually

4) I was hoping to get a result that gives me the a) COMMON Values and then the b) Additional Values for Data A and the c) Additional Values for Data B

 

I played with transform and Joint Match ... but I am not getting to a solution where I can do this comparison easily for a larger number of values and more rows .....

 

Does anyone else has an idea???

Thanks so much already,

petra

 

pohrt_0-1666055334607.png

 

6 REPLIES 6
Qiu
21 - Polaris
21 - Polaris

@pohrt 
How about something like this.

I sepearte the data stream to 2 and use Text To Columns given the delimeter is always ','.

1018-pohrt.PNG

flying008
15 - Aurora

Hi, @pohrt 

 

Just try it like @Qiu :

 

录制_2022_10_18_10_14_28_509.gif

pohrt
8 - Asteroid

Hello Qiu, great solution ..... awesome ... works very well ...

 

One more question: when you use the TRANSFORM SUMMARIZE tool ... is it a good solution to carry other attributes along (that I want to use later) by adding them to the tool with "GROUP BY"? 

 

THANK YOU!

Petra

pohrt
8 - Asteroid

Thank you I got this to work!

 

Appreciate your help

Petra

Qiu
21 - Polaris
21 - Polaris

@pohrt 
I would suggest to use a Join tool to bring the other attributs back to the main data stream as below.
1018-pohrt-1.PNG

pohrt
8 - Asteroid

Oh Ok that makes more sense and is cleaner.

 

thanks again

Petra

Labels
Top Solution Authors