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

IF function - error

BillyL14
8 - Asteroid

Hi 

Could someone tell me what is wrong with my formula?

 

WL1_0-1600966971238.png

 

 

 

Thanks

4 REPLIES 4
ChrisTX
16 - Nebula
16 - Nebula

Remove the double quotes around [Inv.value]

 

You are trying to update the value in the existing field Stat.value, which is a data type Double

 

Is field Inv.value also a Double?

 

Chris

atcodedog05
22 - Nova
22 - Nova

Hi @BillyL14 ,

 

Change the formula to

 

if [Stat.value] = 0 THEN [Inv.value] ELSE [Stat.value] ENDIF

 

It will work. Its a datatype issue

 

If this solves your task please mark the post as solution.

BillyL14
8 - Asteroid
atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂

Labels
Top Solution Authors