Alteryx Designer Desktop Discussions

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

Subtotal and Grand Total

VaishnaviGinni
7 - Meteor

Input after summarization

accountnameaccounttype<3 months3-12 months1-3 yearsGrandtotal
currentL1100200300600

 

output 

accountnameaccounttype<3 months3-12 months1-3 yearsGrandtotal
currentL1100200300600
subtotal 100200300600
Grandtotal 100200300600
6 REPLIES 6
Felipe_Ribeir0
16 - Nebula

Hi @VaishnaviGinni 

 

One way of doing this

 

Felipe_Ribeir0_0-1669041135261.png

 

CarliE
Alteryx Alumni (Retired)

@VaishnaviGinni 

 

Attached is a workflow that I built -- this takes in account if there are multiple account types / multiple subtotals.

 

Please be sure to mark this as a solution if this solved your problem to help other community members out!

Carli
ShankerV
17 - Castor

hi @VaishnaviGinni 

 

Please be informed that, the solution is proposed in such way where it will work for huge data sets too.

 

Input: 

 

ShankerV_0-1669046343306.png

 

 

Output:

 

ShankerV_1-1669046359319.png

 

 

Many thanks

Shanker V

 

 

ShankerV
17 - Castor

Hi @VaishnaviGinni 

 

Step 1: Input

Step 2: Summarize tool

 

ShankerV_0-1669046614248.png

 

Step 3:

 

ShankerV_1-1669046648698.png

 

Step 4: Union tool

 

ShankerV_2-1669046680933.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @VaishnaviGinni 

 

Step 5: 

 

ShankerV_0-1669046721280.png

 

 

 

Step 6:

 

if (mod([RecordID],3)=0)
then "Grandtotal"
elseif(mod([RecordID],2)=0)
then "Subtotal"
else [accountname]

endif

 

ShankerV_1-1669046757256.png

 


Output:

 

ShankerV_2-1669046777926.png

 

Many thanks

Shanker V

binuacs
20 - Arcturus

@VaishnaviGinni One way of doing this with the macro

 

binuacs_0-1669047332658.png

 

Labels