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

IF Statement with Two Conditions

dmpope
8 - Asteroid

Hi there,

 

I'm trying to get this IF statement to work in the formula tool, basically what I'm looking for is to create a new column based on a department number where it'll calculate a figure based on if one column contains "CUSTOMER" and another column also contains the department number on the same record/line. I'm sure it's something to do with my syntax since it's failing once I type ELSE, but I can't figure it out. Any help is appreciated!

 

 

image.png

5 REPLIES 5
alexnajm
19 - Altair
19 - Altair

My guess would be that one of your columns Story Points, Active Minutes, Sum_Capex Points by Team, or Sum_Capex Actual, is not being stored as a number! Can you check that first?

alexnajm
19 - Altair
19 - Altair

I would also check that Peoplesoft Department is being currently stored as a number and not a string!

alexnajm
19 - Altair
19 - Altair

You are also missing an ending parentheses right before ELSE

dmpope
8 - Asteroid

Thanks Alex! I knew it had to be a simple fix, now time to get some more caffeine 😅

alexnajm
19 - Altair
19 - Altair

Happens to the best of us! 😊

Labels
Top Solution Authors