Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Text input - change data type

ewall
7 - Meteor

I have three data sets that I have in my workflow that I've copied/pasted into a Text Input for each. They have the same columns, so I've then unioned them together. I'm trying to use the Summarize tool, but the column that contains dollar values is configured as a String by default. When I try using Select or even Formula (toNumber) to convert the type to a double or Int, it then gives me either a null or 0 instead of the number itself.

 

I need to summarize the sum of these unioned data sets, so leaving it as a String won't work. Any ideas on how to fix?

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @ewall 

 

Possibility could be dolor value might have string component like dollar sign, commas etc

 

See in my scenario I am able to take sum.

atcodedog05_0-1621278173850.png

 

Hope this helps🙂

 

ewall
7 - Meteor

@atcodedog05 ah yes it does. Best way to remove that? Trim?

atcodedog05
22 - Nova
22 - Nova

Hi @ewall 

 

You can use replace function to remove them. And then convert to numbers.

atcodedog05
22 - Nova
22 - Nova

Like below

 

Input:

atcodedog05_0-1621278388276.png

Formula :

atcodedog05_1-1621278417165.png

 

Hope this helps 🙂

 

Labels
Top Solution Authors