Alteryx Designer Desktop Discussions

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

Not Equal To Error?

ethankutch
7 - Meteor

Hello,

 

I am using the Filter tool to create a not equal to statement that states ([ID_SumAmount] != [Sum_Check]) 

 

In my data, there are 6 records that are being spit out as True, even though the values for ID_SumAmount and Sum_Check are the same.

 

I have checked the metadata for types but they are both doubles, and even when I export the data to excel to check for rounding errors they are still the same. 

 

Can anyone help me figure out why these 6 records are being identified as not equal to each other?

 

I have attached pictures of the output as well as the workflow & example data.

 

Thanks,

Ethan

3 REPLIES 3
binuacs
21 - Polaris

@ethankutch Try the below condition in the filter tool

 

round([ID_SumAmount],1) != round([Sum_Check],1)

Hamder83
11 - Bolide

If you change both fields to fixed decimal, it works:

 

image.pngimage.png

danilang
19 - Altair
19 - Altair

Hi @ethankutch 

 

Because of the way that computers store double values, they can appear the same, but differ in their 13th or smaller digit after the decimal point.  The best way to deal with this is to use ABS([ID_SumAmount] - [Sum_Check])>epsilon as your filter.  Define epsilon as required for the precision that you need.  In banking the required precision might be 0.0001, for scientific work it might be 1e-10 or smaller.

 

Dan  

Labels
Top Solution Authors