Alteryx Designer Desktop Discussions

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

Adding values in a cell which are separated by commas

murthybhs
8 - Asteroid

Hello everyone,

 

I very much appreciate how the community was helpful in answering my questions. I have a dataset that looks as below.

 

murthybhs_0-1603688580295.png

I want to see if Alteryx would be able to add values separated by commas and give the sum in that cell. 

For example,

company B for Apr-20, I want 900+1200 = 2100 (sum only) instead of 900,1200 and

company A for Jul-20, I want 2000+1000 = 3000 (sum only) instead of 2000,1000

 

At the end of the workflow, I want something that looks like this where all the values that got separated by a comma(,) added up and everything else stays intact:

murthybhs_1-1603688800366.png

 

Any help in this is much appreciated.

 

Thank you!

 

 

 

9 REPLIES 9
grazitti_sapna
17 - Castor

Hi @murthybhs , try this.

grazitti_sapna_0-1603690317531.png

 

If this is what you are looking for kindly mark this post as solution.

Thanks.

 

Sapna Gupta
atcodedog05
22 - Nova
22 - Nova

Hi @murthybhs 

 

Here is a workflow for the task.

 

Input:

atcodedog05_0-1603690332585.png

Output:

atcodedog05_1-1603690403671.png

Workflow:

atcodedog05_2-1603690415876.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Qiu
20 - Arcturus
20 - Arcturus

@murthybhs 
Is this what you want?1026-murthybhs-A.PNG

DeanWest
9 - Comet

Here is my corrected solution. A Dynamic Replace Tool is in fact required because of the special character in the Field Names. I used a Select Tool to change the datatype instead of a toNumber() function. 

 

Parse-Sum_solution-DeanWest-snippet-corrected-1.pngParse-Sum_solution-DeanWest-snippet-corrected-2.png

atcodedog05
22 - Nova
22 - Nova

Hi @DeanWest 

 

We are using Dynamic rename to change "Apr_20" to "Apr-20" to match the format.

Our output is similar to yours before that tool.

DeanWest
9 - Comet

You are most definitely correct! Thank you for pointing that out, I'll correct my solution now. 

Qiu
20 - Arcturus
20 - Arcturus

@atcodedog05 
I did not even notice the difference.😅

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @murthybhs 

 

Cheers and Happy Analyzing 😀

grazitti_sapna
17 - Castor

Not sure what I did wrong maybe it is the comma separators that I used. Here is the updated workflow.

 

grazitti_sapna_0-1603692410438.png

 

Sapna Gupta
Labels