Free Trial

Alteryx Designer Desktop Discussions

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

Tolerance match

aka_ash
8 - Asteroid

Hi,

 

I am looking to find a way to perform matching of 2 fields from different sources, i am using a joint tool to match all the other fields I require to match however i have a field where i need to apply a tolerance of +/- 1.

 

If there a way to perform a match of [Data 1 - Dollars] = [Data 2 - Dollars] but add a check for a tolerance of 1 (preferably using formulas)?

 

Below is some sample data

 

Data 1 - DollarsData 2 - DollarsStatus
1234.561234.56Match
222.4442342.23Non-Match
222.234223.234Tolerance Match
222.234222.01Tolerance Match

 

Thanks in advance,

Ash

2 REPLIES 2
DavidP
17 - Castor
17 - Castor

Hi @aka_ash 

 

How about an if statement like this:

 

IF [Data 1 - Dollars]=[Data 2 - Dollars] THEN 'Match'
ELSEIF ABS([Data 1 - Dollars]-[Data 2 - Dollars])<=1 then 'Tolerance Match'
ELSE 'Non-Match' ENDIF

 

DavidP_0-1597305137275.png

 

aka_ash
8 - Asteroid

That will work, thanks for the solution @DavidP 

 

Cheers,

Ash

Labels
Top Solution Authors