We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun 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