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.

Decimal automatically transfer to string with unknown reason

philosophy22
7 - Meteor

Hi,

I am using this excel as input to do some calculation, the gearing proportion column has some decimals and normally alteryx will recognize this column with data type double. However, in this case, alteryx recognized it with string type, and if i transfer this type to fixed decimal, will cause some decimal data missing, can not understand why this happened, If anyone knows answer, please tell me the reason. Many thanks!

philosophy22_0-1666767474313.png

 

4 REPLIES 4
grazitti_sapna
17 - Castor

@philosophy22  This is because your data contains exponential values as below and you need to cast them to number to change their datatype to fixed decimal using formula tool. Please find below the workflow for correct way of doing it.

 

grazitti_sapna_0-1666767916778.png

 

Sapna Gupta
philosophy22
7 - Meteor

Thank you for your reply. The exponential values is transferred by alteryx, not in my data. And if i directly transfer data type to fixed decimal, as the question mentioned, there were some data missing.

grazitti_sapna
17 - Castor

@philosophy22 , yes the exponential values are getting missed because it has alphabet E in data, therefore Alteryx is unable to convert it to decimal directly and you will have to cast it to number and then change it to decimal data type. 

Sapna Gupta
gyang3
Alteryx Alumni (Retired)

@philosophy22 the workflow that @grazitti_sapna provided should do the trick in converting those exponential values into a numeric value. If you think you are still missing some data, you can increase the scale from 6 to 10 in the Formula tool which will expand the data 10 digits to the right of the decimal.

 

gyang3_3-1666803367312.png

 

Hope that helps!

 

Labels
Top Solution Authors