Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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