Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

comparing multiple fields within a table

jogianni
7 - Meteor

I am joining two tables on a single field. They both contain address city state and zip information. I would like to compare each field and set a flag if they are not the same. Example if address and right_address don't match for the same ID, then address_change field would be set to 1.

 

I've guessed the first step is a simple join on the ID. After that, is there a way to do this in one or two steps? or is it just one long multi-field formula?

2 REPLIES 2
Greg_Murray
12 - Quasar

Hi, 

 

see below. You can add a formula tool after the join tool (not pictured) and use an if statement to indicate whether the address fields contain the same value. 

 

Capture.JPG

 

Hope that helps.

 

Greg

jogianni
7 - Meteor

Hi Greg,

 

Yes thank you for the response. I figured I could do it with a formula but I was just wondering if there was a pre-built 'compare' tool I wasn't aware of.

 

 

Labels