Alteryx Designer Desktop Discussions

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

Create row to sum the column

hegdepavithra10
9 - Comet

Hi,

 

I want to sum each of columns as seen below, but i want them to summed beneath the columns.

 

hegdepavithra10_0-1607026613774.png

 

note: the rows in which the data is present does not have to be restricted to 4 rows only

 

@atcodedog05 could you suggest.

 

Is there a way that this could be done without using a macro.

14 REPLIES 14
T_Willins
14 - Magnetar
14 - Magnetar

Hi @hegdepavithra10,

 

Here is a great Alteryx article on how to use Transpose and Cross Tab tools to add a summary row:

 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Transpose/ta-p/89741

 

WernerE
8 - Asteroid

Hi @atcodedog05,

 

Here is a quick example of how to get the desired result using the transpose and crosstab tools. 

Hope it helps. Feel free to ask if you have any questions. 

 

 

echuong1
Alteryx Alumni (Retired)

Any easy way to add totals is with the Add Totals Crew Macro.

 

echuong1_0-1607032883085.png

 

You can download the tools here:

http://www.chaosreignswithin.com/p/macros.html 

Qiu
20 - Arcturus
20 - Arcturus

@hegdepavithra10 

How about using a Cross Tab Tool

1204- hegdepavithra10.PNG

hegdepavithra10
9 - Comet

Is there a way that only selected columns can be summed ?

Qiu
20 - Arcturus
20 - Arcturus

@hegdepavithra10 
Lets use a filter tool

1204- hegdepavithra10-R1.PNG

hegdepavithra10
9 - Comet

@Qiu  which fields must be selected under transpose ?

atcodedog05
22 - Nova
22 - Nova

Hi @hegdepavithra10 

 

Here is a workflow for the task. My take on this

Output:

atcodedog05_0-1607058297192.png

Workflow:

atcodedog05_1-1607058310835.png

Add columns in summarize for whichever you need total

atcodedog05_0-1607058362890.png

 

Hope this helps 🙂 Feel to ask if you have any questions


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

grazitti_sapna
17 - Castor

Hi @hegdepavithra10 ,

 

Try this if it works for you. Using Summarize tool you can select the columns particularly you want the total for.

 

grazitti_sapna_0-1607058514533.png

Under transpose you need to select the column fields in data column part and record id in key column.

 

grazitti_sapna_1-1607058634618.png

 

In case you want to solve this using transpose and crosstab tool for particular column(s) try this.

 

grazitti_sapna_1-1607058982942.png

 

grazitti_sapna_0-1607058958751.png

 

 

I hope it helps. Kindly mark this post as solution if it solves your purpose.

 

Thanks.

 

Sapna Gupta
Labels