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 for Greater than and less than in 1 statement

CherylH
8 - Asteroid

Can someone help?

 

Here is my formula in Excel   if [Volume Cases]>-.99 and <.99 then "0" else [Volume Cases] endif

 

Alteryx does not like it.  

 

How do I write in Alteryx?

 

Thanks in Advance

4 REPLIES 4
ShankerV
17 - Castor

Hi @CherylH 

 

One way of doing this.

 

ShankerV_0-1682691848092.png

 

if [Volume Cases]>-.99 or [Volume Cases] <.99
then "0"
else [Volume Cases]
endif

 

ShankerV_1-1682691859138.png

 

Many thanks

Shanker V

MilindG
12 - Quasar

if [VOLUME CASES] > -.99 and [VOLUME CASES] < .99 then 0 else [VOLUME CASES] endif

Christina_H
14 - Magnetar

IF ABS([VOLUME CASES])<.99 THEN 0 ELSE [VOLUME CASES] ENDIF

CherylH
8 - Asteroid

Thanks this worked beautifully!  Appreciate the quick resolution. 

Labels
Top Solution Authors