Alteryx Designer Desktop Discussions

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

Convert string to number with 4 decimals places.

RichardAlt
8 - Asteroid

I have a problem converting the string to a number.

 

I have this sample dataset.

Col1Col2Col3Col4Col5Col6
ISINPriceNetISINPriceNet
 USDSGD USDSGD
      
   LU221195566610.380.04
      
   LU221195531015.410.05
   LU221195574010.830.05
      
   LU221195582310.380.04
   LU221195604510.810.05
LU223039294195.17-0.16   
LU227502738614.82-0.04   
LU2106585644100.09-0.28   
LU2106585560102.48-0.3   
   LU2106585727100.53-0.3
LU2106585487102.36-0.29   
LU2106586378101.93-0.73   
      
LU2106586022101.72-0.73   
LU2106586535103.91-0.75   
LU167584403696.94-0.15   
   LU172089747689.05-0.15
      
LU167584390514.31-0.02   

 

I just want to convert col2-col3 and col5-col6, but when I insert Select Tool and change the datatype to FixedDecimal 19.4, Yes It converts the number but the text like SGD, USD and other text in that columns becomes null.

 

2 REPLIES 2
binuacs
20 - Arcturus

@RichardAlt Alteryx don't support multiple data types in one column. 

TheOC
15 - Aurora
15 - Aurora

hi @RichardAlt 

Sorry to hear about your issue.
if you set a field to a numeric, all string data from that field will be lost. mI would recommend making the text in this data within the column headers:

 

Please see attached solution

 

Cheers,
TheOC


Bulien
Labels