Alteryx Designer Desktop Discussions

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

Summing up data based on several categories

RNSEG
7 - Meteor

I have a set of data that consists of 6 columns (Fund Name, Class Name, Investor ID, Investor Name, Activity Name, and Values) 

 

I want to sum the Values based on the Investor name, Class Name, Fund Name and Activity Name. How would i go on about this using the summarize tool or is there another tool that can have this done? 

 

See below simplified dataset and desired outcome. 

 

Fund NameClass NameInvestor IDLegal nameActivity NameValues
ABC FundClass A101John SmithBeginning Value1,000
ABC FundClass A101John SmithSubscription500
ABC FundClass A101John SmithGain/(Loss)100
ABC FundClass A101John SmithEnding Value1,600
ABC FundClass A101John SmithBeginning Value500
ABC FundClass A101John SmithSubscription0
ABC FundClass A101John SmithGain/(Loss)50
ABC FundClass A101John SmithEnding Value550
CDE FundClass B102James BondBeginning Value1000
CDE FundClass B102James BondSubscription0
CDE FundClass B102James BondGain/(Loss)500
CDE FundClass B102James BondEnding Value1,500
CDE FundClass B101John SmithBeginning Value600
CDE FundClass A101John SmithSubscription0
CDE FundClass A101John SmithGain/(Loss)60
CDE FundClass A101John SmithEnding Value660660

 

And the desired outcome would look like this where John Smith in ABC fund was summed together based on the fund name, Class name, and legal Name: 

 

Fund NameClass NameInvestor IDLegal nameActivity NameValues
ABC FundClass A101John SmithBeginning Value1,500
ABC FundClass A101John SmithSubscription500
ABC FundClass A101John SmithGain/(Loss)150
ABC FundClass A101John SmithEnding Value2,150
CDE FundClass B102James BondBeginning Value1000
CDE FundClass B102James BondSubscription0
CDE FundClass B102James BondGain/(Loss)500
CDE FundClass B102James BondEnding Value1,500
CDE FundClass A101John SmithBeginning Value600
CDE FundClass A101John SmithSubscription0
CDE FundClass A101John SmithGain/(Loss)60
CDE FundClass A101John SmithEnding Value660660
5 REPLIES 5
ShankerV
17 - Castor

Hi @RNSEG 

 

One way of doing this.

 

ShankerV_0-1681915285116.png

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @RNSEG 

 

Step 1: Input

 

ShankerV_0-1681915361414.png

 

 

Step 2: 

 

ShankerV_1-1681915377516.png

 

ReplaceChar([Values], ",", "")

 

ShankerV_2-1681915385916.png

 

Step 3: 

 

ShankerV_3-1681915415460.png

 

ShankerV_4-1681915425132.png

 

 

Step 4: 

ShankerV_5-1681915441959.png

 

ShankerV_6-1681915450593.png

 

Many thanks

Shanker V

 

 

 

RNSEG
7 - Meteor

Hi Shanker, 

 

Thanks this worked well. I am just realizing within the datasets, there are values that shouldn't be summed up which is a percent return (displayed as 0.50 which is 50% return). How would I go on about not having this specific row not summed up in the summarize tool? 

 

Fund NameClass NameInvestor IDLegal nameActivity NameValues
ABC FundClass A101John SmithBeginning Value1,000
ABC FundClass A101John SmithSubscription500
ABC FundClass A101John SmithGain/(Loss)100
ABC FundClass A101John SmithEnding Value1,600
ABC FundClass A101John SmithNet Return0.50
ABC FundClass A101John SmithBeginning Value500
ABC FundClass A101John SmithSubscription0
ABC FundClass A101John SmithGain/(Loss)50
ABC FundClass A101John SmithEnding Value550
ABC FundClass A101John SmithNet Return0.50

 

And the desired outcome would look like this where John Smith in ABC fund was summed together based on the fund name, Class name, and legal Name: 

 

Fund NameClass NameInvestor IDLegal nameActivity NameValues
ABC FundClass A101John SmithBeginning Value1,500
ABC FundClass A101John SmithSubscription500
ABC FundClass A101John SmithGain/(Loss)150
ABC FundClass A101John SmithEnding Value2,150
ABC FundClass A101John SmithNet Return0.50
MilindG
12 - Quasar

@RNSEG 

RNSEG
7 - Meteor

Thanks MilindG. This is helpful

Labels