Alteryx Designer Desktop Discussions

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

Sum Records from a column

afvassis
5 - Atom

Hi - I am trying to sum a list of records and have a new record labelled "total" (this will be a new record).  It is not creating a new column, but instead adding a new record for total.  Below is an example of what I have...

 

ProductRevenueCost
A102
B153
C204

 

... and I want Alteryx to add a new item "total"

 

ProductRevenueCost
A102
B153
C204
TOTAL459

 

Sorry for the basic question but I am still learning the tool (and loving it!)

Thanks

 

3 REPLIES 3
AngelosPachis
16 - Nebula

Hi @afvassis.,

 

You have to use a summarize tool to sum the fields Revenue and Cost. Then use a union tool to bring it in the desired format.

 

Annotation 2020-07-07 160917.png

Hope that helps 🙂

 

Cheers

JosephSerpis
17 - Castor
17 - Castor

Hi @afvassis I mocked up a workflow that shows two way you can do this. Let me know what you think?

meljaafari
Alteryx Alumni (Retired)

Hey @afvassis ,

 

Welcome to Alteryx 🙂

A similar workflow to the following will get you there. Of course there are multiple other ways within Alteryx to get to the same result

meljaafari_0-1594134501864.png

 

Attached the workflow,

 

Mo

Labels