Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

total of column at the end

BRRLL99
11 - Bolide

Hi Team,

 

I have Following Data-set

 

CostsYEAR 1YEAR 2YEAR 3YEAR 4YEAR 5
Ex Project Costs 1500000
Ex Project Costs 240010000
Ex Project Costs 3060000
Ex Project Costs 400000

 

Expected out-put:

 

CostsYEAR 1YEAR 2YEAR 3YEAR 4YEAR 5Total
Ex Project Costs 150000050
Ex Project Costs 240010000140
Ex Project Costs 306000060
Ex Project Costs 4000000
Total906010000250
5 REPLIES 5
DataNath
17 - Castor

Hey @BRRLL99, here's a couple of ways of doing this...

 

1) Use the Add Totals macro, created by @MarqueeCrew and co - http://www.chaosreignswithin.com/p/macros.html

Just tick 'Add Total Row only'

 

DataNath_0-1664516775999.png

 

2) Transpose your data and then re-Cross-Tab. Within the CT configuration, there's an option to add a Total Row (you still need your initial aggregation):

 

DataNath_1-1664516867748.png

 

I've just used the Dynamic Rename at the end to clean the headers back up. If this is messing with any existing headers then let me know as there's a full work around for maintaining naming:

 

DataNath_2-1664516892792.png

 

Hope this helps but please do let us know if you still have any problems!

Qiu
20 - Arcturus
20 - Arcturus

@BRRLL99 
Thank you for the information about the Add Totals macro.

flying008
14 - Magnetar

Hi, @BRRLL99 

 

There is 2 easy ways to get your want output:

 

1- used CreW macro Add-Totals.

2- Transpose + CrossTab. 

 

录制_2022_09_30_13_52_38_583.gif

录制_2022_09_30_14_00_27_423.gif

 

*********

Please mark it is a solution and give a like with if it help you get want output.

BRRLL99
11 - Bolide

Hi Guys,

 

Thank you For your Help

I Have used different scenario and got the expected output

 

BRahuL99_0-1664519087094.png

 

DataNath
17 - Castor

No problem @BRRLL99 - for future reference, the Add Totals macro also has an option to add both a total column and row! :)

 

DataNath_0-1664519239031.png

Labels