Alteryx Designer Desktop Discussions

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

Condition for Advanced Join tool using numeric formulas

nd2
5 - Atom

Hello, 

 

Let's say I have two datasets: 

 

FILE 1 
NamePrice1
A11.4
B43.1
C100.2
D24.2

 

FILE 2 
NamePrice2
100.2
X24.2
Y11.4
Z43.2

 

I want to join IF the values match or are +/- 1 from each other. So A should match with Y, B to Z, C to W, and D to X. Now the problem is that if the Join tool will join by specific fields, and I choose price on the left and price on the right, B and Z will not match because 43.1 and 43.2 will not match with each other.

 

I tried to leverage the Advanced Join tool here with the condition being: "Price1" >= "Price2 - 1" && "Price1" <= "Price2 + 1". This does not give me any results. I'm not sure if this is because of the numbers within the condition, or I'm not setting the condition correctly. 

 

I have been trying to figure this out for hours and would appreciate some help. 

1 REPLY 1
fmvizcaino
17 - Castor
17 - Castor

Hi @nd2 ,

 

I'm sharing you a solution where you combine all the possible matches and then evaluates with a filter tool.

fmvizcaino_0-1588737250325.png

 

Example attached as well.

Best,

Fernando Vizcaino

 

Labels