In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors