Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Join and Sum --- Join of 2 tables with having Sum of one column from table 2

LadyNaureen
7 - Meteor

Dear Community 

 

Need your expert solution to following problem: 

 

I have to join 2 tables - Employee and Employee_Expense with sum of one Expense_Amount column  from Employee_Expense Table

 

EMPLOYEE

 

Employee_IDEmployee-NameDepartment 
101John DoeFinance
102Jane DoeOperations
103Adam Patrick Administration

 

 

EMPLOYEE_EXPENSE

 

Employee_IDExpense_MonthExpense_YearGeneral_Expense_AmountMeal_Expense_Amount
101April202136100
101May 202123100
101May 202170500
102May 2021113236
102May 2021313678
103May 2021121345

 

 

OUTPUT

 

Employee_IDExpense_MonthExpense_YearTotal_General_Expense_Amount_May_2021Total_Meal_Expense_Amount_May_2021Total_Expense
101May 202193600693
102May 20214269141340
103May 2021121345466

 

Output:

 

 

NOTE: I have pasted the output required in third sheet. 

 

Thank you. 

 

Regards,

LadyN

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @LadyNaureen,

 

To show you the output I needed to filter the data by May. 

 

Emil_Kos_0-1624002141563.png

 

The truth is you don't need to have those two tables to receive this output but I believe you might be just starting with Alteryx so I have added a joining tool and the names of individuals to show you how to do that.

 

 

 

LadyNaureen
7 - Meteor

@Emil_Kos 

 

You are brilliant! 

 

Thank you for prompt response. 

 

Kind Regards,

LadyN

Emil_Kos
17 - Castor
17 - Castor

@LadyNaureen Happy to help!

 

Emil_Kos_0-1624005429181.png

 

Labels