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

newbie: please help - if/elseif error message

dbudman
5 - Atom

dbudman_0-1670614324770.png

why am i getting this error message? thank you so much. have a nice weeke

6 REPLIES 6
PanPP
Alteryx Alumni (Retired)

Hi @dbudman 

 

You will need to make sure the value inside the quotes is also the correct data type to fit the expression.

then you will need to change null() to isnull() and this should resolve your issue.

 

 

dbudman
5 - Atom

hi thanks just did that but didn't work :(

 

dbudman_0-1670614904678.png

 

 

 

PanPP
Alteryx Alumni (Retired)

Can you replace isnull() to ""    it will output a blank column which is essentially the same thing.

 

Hope this helps, if it does please like this post and if it helps resolve your problem, mark it as a solution. If you have any other questions, please let us know.

binu_acs
21 - Polaris

@dbudman seems to be a data type issue for the field , please make sure that the field Median income (dollars) is numeric 

 

binuacs_0-1670628916859.png

 

ShankerV
17 - Castor

Hi @dbudman 

 

The problem is due the data type mismatch of the incoming column Median Income (dollars).

 

Your IF/ELSE is erroring because of the incoming data type as below.

ShankerV_0-1670657672118.png

 

Use SELECT TOOL before your formula tool and just change the datatype to Int64. Your existing formula will work.

ShankerV_2-1670657793892.png

 

ShankerV_1-1670657768987.png

 

Many thanks

Shanker V

dbudman
5 - Atom

thank you so much!

Labels
Top Solution Authors