Alteryx Designer Desktop Discussions

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

I want to change the data from row into to column and sum

Sshasnk
8 - Asteroid

Hi I have dataset below where I have to group by class and sum the amount for each of the columns

 

FundClassAmountpurchasetotal netsell
ABCA145782145
ABCB123462323
ABCA23781212
ABCB1454320

 

Ouput:

 

FundDescriptionAB
ABCAmount168137
ABCPurchase156100
ABCDifference1237
ABCTotal net3355
ABCsell5723

 

Difference = amount - purchase

I sort of know it can be done with the cross tab tool but I am using cross tab for 4 times, is there any other better way to do it

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @Sshasnk 

 

One way of doing this

 

Felipe_Ribeir0_1-1668598741735.png

 

 

binuacs
20 - Arcturus

@Sshasnk Similar to @Felipe_Ribeir0 approach

 

binuacs_0-1668606669906.png

 

 

Felipe_Ribeir0
16 - Nebula

Hi @Sshasnk 

 

It worked?

Labels