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
15 - Aurora

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