Alteryx Designer Desktop Discussions

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

Formula Gives Result in text form

Pushpendra_1
6 - Meteoroid

Hi,

The below formula that I use gives me the result in text form.

Can I modify the same formula to get the result in number format?

Thanks,

 

IF tonumber([PPV Quantity])<0 THEN tonumber([PPV Quantity])*-1 elseif tonumber([PPV Quantity])>0 then tonumber([PPV Quantity])*1 else "0" endif

3 REPLIES 3
benakesh
12 - Quasar

Hi @Pushpendra_1 ,

Try  else  0   i.e   formula  results are numbers  for  all conditions .

MarqueeCrew
20 - Arcturus
20 - Arcturus
Else "0" should be:

Else 0

Then you should be able to type the field as numeric.

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Kenda
16 - Nebula
16 - Nebula

@Pushpendra_1 

 

Are you creating a new field in a Formula tool? If so, in the drop down, select one of the numeric types. Also, just delete the quotes around the 0 in the very last portion of your expression.

 

Hope this helps!

Labels