Alteryx Designer Desktop Discussions

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

Convert string datatype to double datatype

Carissahjx
6 - Meteoroid

Hi, I imported a csv file into Alteryx, and I want to convert the data under the pay rate field from string datatype to a double datatype. Can anybody provide help please, thank you!

Carissahjx_0-1665581025071.png

 

 

6 REPLIES 6
JamesCharnley
13 - Pulsar

Hi @Carissahjx,

 

The easiest way to change data types is connecting the data up to a Select tool, and then changing the data type to a double in the 'Type' drop down menu. In your case due to the $ sign, you will first have to add a Formula tool with a formula such as Trimleft([Pay Rate], '$')

 

JamesCharnley_0-1665581448653.png

 

Luke_C
17 - Castor

Hi @Carissahjx 

 

A replace function followed by a select tool should work:

 

Replace([Pay Rate],'$','')

 

Luke_C_0-1665581421952.png

 

Emmanuel_G
13 - Pulsar

@Carissahjx 

 

Find in attachment the way of doing that.

 

Emmanuel_G_0-1665582286481.png

 

Carissahjx
6 - Meteoroid

Hi @JamesCharnley, thanks so much for your solution. It works!

Carissahjx
6 - Meteoroid

Hi @Luke_C, thanks so much for your help!

Carissahjx
6 - Meteoroid

Hi @Emmanuel_G, thanks so much for your help!

Labels