Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

How to convert a columns data type from Double to String

DawnaU
5 - Atom

I need to convert a columns data type (for a UPC, 13 digits) from a Double to a String. What is the best method to achieve this ?

I have tried a Multi-Field Formula of 

IIF([_CurrentField_]=0,'0', [UPC 13 dig (Product ID)]), however this truncates the output UPC at the "0" within the UPC. I need to convert the entire UPC to a string.

4 REPLIES 4
IraWatt
17 - Castor
17 - Castor

Hey @DawnaU,

Use the Select Tool to convert columns data types:

IraWatt_0-1662733361273.png

 

IraWatt
17 - Castor
17 - Castor

@DawnaU If your new to Alteryx I would definitely recommend quickly going through the introductory learning videos: Getting Started Learning Path - Alteryx Community

DawnaU
5 - Atom

Thank you. We were trying to avoid manually changing the data type as this workflow would be applied to multiple input files.

IraWatt
17 - Castor
17 - Castor

ahh okay @DawnaU can you give an example files/dataset to give an idea of how this could be done dynamically?

Labels