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

Formula help: Where does ToNumber() get placed

CherylH
8 - Asteroid

HI,

 

Need help with a formula. Column will be used to multiple with another column reason it needs to be numeric.

 

Data Type=Double 8  & Formula is colored correctly and reads:

IF [BB File]="Y" THEN [Product Rebate] ELSEIF [BB File]="PB=50% balance to allied" and [Reporting  Bottler System]="PB" THEN [Product Rebate]/2 ELSE "0" ENDIF

 

error comes up= The Formula resulted in a string but the field is numeric.  Use ToNumber() if this is correct. 

 

Where do I insert: ToNumber()  and what needs to go in the brackets?

 

Thanks  in advance for helping. 

2 REPLIES 2

Hi @CherylH 

 

I assume Product Rebate is a numeric field. In that case, the else statement should have 0 not "0" as the double quotes make it a string. Hope this helps. Cheers!

CherylH
8 - Asteroid

Hi Christine,

 

That fixed it! So simple UGH!    Thank you so much

Labels
Top Solution Authors