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

Merging Two Columns

cwigert
5 - Atom

Hello,

 

I am trying to replace the data in column Price with $420 but only if Price2 is $420. Currently, my formula makes Price equal to $0, not $420. Not sure what is wrong with my IF statement, maybe there is a different tool I should be using? Any ideas are helpful.

cwigert_2-1637110060895.png

 

cwigert_1-1637109989176.png

 

1 REPLY 1
cmcclellan
14 - Magnetar

I think your code should be

 

If ToNumber([Price2]) > 0

then 420

else [Price]

endif

Labels
Top Solution Authors