We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Multiply by decimals

nicktekippe
8 - Asteroid

I need to multiply the below fields by percentages and then add them up and multiply them by 10. I am receiving an error when trying to type the code out.

nicktekippe_1-1660236880174.png

 

nicktekippe_2-1660236939579.png

 

3 REPLIES 3
ChrisTX
16 - Nebula
16 - Nebula

You'll need to convert [QBiC_R12] to a number.  Use the ToNumber function.

 

Here's a list of all functions: https://help.alteryx.com/20221/designer/functions

 

Chris

Emmanuel_G
13 - Pulsar

Hi @nicktekippe ,

 

This error is due to the fact that the QBIC_R12 column is a string type column.

 

You cannot multiply a column of type string to a float or numeric value.

 

It is thus necessary as a preliminary to convert the field QBIC_R12 in number.

 

Either by changing the type directly in the select tool in screenshoot, or by using a multi-field formula with the ToNumber function.

grazitti_sapna
17 - Castor

@nicktekippe, this would help.

grazitti_sapna_0-1660279739690.png

 

Thanks!

Sapna Gupta
Labels
Top Solution Authors