Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Number not matching, round off issue

hf14
アステロイド

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件の返信7
Luke_C
キャスター

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
アステロイド

@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
キャスター

Hi @hf14 

 

Double should be fine

hf14
アステロイド

Hi @Luke_C 

 

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

 

hf14_0-1684244137001.png

 

Luke_C
キャスター

Hi @hf14 

 

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

Deano478
クエーサー

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
アステロイド

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.

ラベル