Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Formula where the result required is in either double or fixed decimal, i.e. digit

SCK
8 - Asteroid

Hi all.. I need help. I need to calculate a value based on certain condition. The condition being in excel, I need to convert it in a way that Alteryx reads it and gives me a value in number rather than string. I tried using If condition but ended up getting an error that the result should be in string.

 

IF(F1-F2)>0,(F1-f2)*(1-F3)

 

Please help.

7 REPLIES 7
grazitti_sapna
17 - Castor

Hi @SCK , could you please attach your workflow along? 

Thanks.

Sapna Gupta
grazitti_sapna
17 - Castor

@SCK , is this something you are looking for? I tried to mockup the workflow.

Formula- if ([F1]-[F2])>0 then ([F1]-[F2])*(1-[F3]) else Null() endif

try this.

 

grazitti_sapna_0-1598858993177.png

Thanks.

 

Sapna Gupta
SCK
8 - Asteroid

Here you go, thank you

SCK
8 - Asteroid

This actually worked! Thank you so so much. 🙂

grazitti_sapna
17 - Castor

@SCK , try this

 

in else condition you used double quotes converting the field into string, try passing it without the quotes and it will work.

Please refer to the screenshot and attached workflow.

grazitti_sapna_0-1598859248507.png

 

Sapna Gupta
SCK
8 - Asteroid

Thank you so much, it worked.

grazitti_sapna
17 - Castor

Welcome, glad to help.

Thanks.

Sapna Gupta
Labels