Alteryx Designer Desktop Discussions

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

If else condition

carmenwu1
5 - Atom

Hi all,

 

I have a question about how to incorporate an if-else statement in the Alteryx workflow.

Basically, I want do something like "if the absolute value of USD under USA is greater than that under UK, do XYZ, else do XYZ". Any advice? Thank you so much!

 

Location    USD

USA          9,000,000

UK             -1,234,567

 
2 REPLIES 2
CokeLuke
8 - Asteroid

How about something like this by adjusting the input data?

 

Text input:

CokeLuke_0-1617059004767.png

 

Formula:

CokeLuke_1-1617059038383.png

 

Browse:

CokeLuke_2-1617059064551.png

 

 

AbhilashR
15 - Aurora
15 - Aurora

Hi @carmenwu1, you could use a multi-row formula to setup an IF Else statement across rows. Something like the screenshot below:

AbhilashR_0-1617075789002.png

IF ABS([USD])>ABS([Row+1:USD])
   THEN 'XYZ'
ELSE 'ABC'
ENDIF

 

 

Labels