Alteryx Designer Desktop Discussions

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

How to compare values from two columns but not exact, any part of field

wonka1234
10 - Fireball

Hi,

 

Im trying to do a find and replace type of comparison between 2 fields within the same dataset.

It kind of gets confusing when I use it on the same dataset as it creates duplicate column names.

 

Any way you guys do this?

6 REPLIES 6
anandakrishnan
7 - Meteor

@wonka1234 Can you share an example of what your trying to do. Share some input and desired images or file.

wonka1234
10 - Fireball

@anandakrishnan 

I want to compare these 2 columns, but doesnt have to be exact

 

NumberNumber2
90850141395014139
11225917932259179
11223618172236181
99999999999999999

 

 

caltang
17 - Castor
17 - Castor

A formula tool will do if you just want to know if there’s a difference and by how much. Does that help?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
AndrewDMerrill
13 - Pulsar

If you are trying to match them together, you could use the Contains function

Contains(ToString([Number]),ToString([Number2]))

wonka1234
10 - Fireball

@AndrewDMerrill 

 

So I get 0 and -1 .. how can i adjust this?

 

Please see attached workbook.

 

Expected output - 

 

NameCust_NoIDNUMRight_NameRight_Cust_NoNmmber
Louis55555License56575Louis555556575
Louis55555PassportUS12345Louis55555US123
Louis55555License1234Louis555551234
Louis55555PassportCA12345Louis555551234
Louis55555PassportUS12345Louis555551234
AndrewDMerrill
13 - Pulsar

For clarity's sake, I will link to your other thread, where I already posted what I believe to be the solution to your problem:

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Compare-2-columns-from-same-da...

Labels