Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

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