Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
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