ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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