We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Number not matching, round off issue

hf14
8 - Asteroid

I have these numbers data, I just simply want to equate them.

 

hf14_0-1684166291577.png

 

As you can see im getting only 1 result as True, when I know all of them are equal but due to decimal its failing.

I tried round but maybe I dont know how to use.

 

7 REPLIES 7
Luke_C
17 - Castor
17 - Castor

Hi @hf14 

 

Try this, depending on your tolerance for variances you can add more 0s. The below checks to two decimals and results in all your records matching.

 

Round([G],.01) = Round([T],.01)

 

hf14
8 - Asteroid

@Luke_C  what should I select in data type, because when i put fixed decimal, its giving all null result

 

hf14_0-1684224794638.png

 

Luke_C
17 - Castor
17 - Castor

Hi @hf14 

 

Double should be fine

hf14
8 - Asteroid

Hi @Luke_C 

 

Keeping it as double is working but i want numbers with 3 decimal places

 

hf14_0-1684244137001.png

 

Luke_C
17 - Castor
17 - Castor

Hi @hf14 

 

See attached workflow. I'm not sure how yours is configured but this is working:

Deano478
12 - Quasar

Hi @hf14 I tested this with fixed Decimal set to 19.3 and it worked to add on 3 decimal places see below:

 

Deano478_0-1684245495813.png

 

hf14
8 - Asteroid

Thanks @Luke_C 

 

Now I know why your solution didnt work for me, as I was testing it separately in TextInput but when using it in the original workflow which is using Excel inputs, its working.

Labels
Top Solution Authors