Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Formula tool issue

SDeora
7 - Meteor

Hello, I am using Formula tool to replace values in a range with 0.00. In case the initial value is already 0.00 result is turning out to be -1.00 instead of 0.00. 

 

How can I fix this? 

 

Pre:

SDeora_0-1590078968563.png

Formula: if [Field2]<=20.00 AND [Field2]>=-20.00 THEN [Field2]=0.00 ELSE [Field2] ENDIF

Post: notice record 6 was already 0.00 and formula tool replaced it with -1.00

SDeora_1-1590078999261.png

 

Attached workflow. Please help!! 

 

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @SDeora your syntax of the formula should be "if [Field2]<=20.00 AND [Field2]>=-20.00 THEN 0.00 ELSE [Field2] ENDIF"

 

Formula_21052020.JPG

SDeora
7 - Meteor

This worked great. Thank you !! 

Labels