Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to total a column in another file based on the data from a file?

Kallis
8 - Asteroid

Hello Friends

 

I have 2 Excel Workbooks. 

 

Excel One. Has Cost Centre & Revenue Cost Centre

Cost CenterRevenue CC
A220418ABC23C220603
A220418ABCDE23C220603
A220418ABCDEFG23C220603
A220418000023C220603
A2204180000123C220603
A2204180001023C220603
A2204180010023C220603
A22041800100023C220603
A220418010000023C220603
A22041850023C220603
A2204185670023C220603
A2204145666623C220603
A220415000023C220603
A220416000023C220603

 

Excel Two - Has Cost Centre & Value

Cost CenterValue
A220418ABC300
A220418ABCDE455
A220418ABCDEFG57244
A2204180000114033
A22041800001170822
A22041800010227611
A22041800100284400
A220418001000341189
A2204180100000397978
A220418500454767
A22041856700511556
A22041456666568345
A2204150000625134
A2204160000681923

 

The value for each cost centre is in Excel Two.

 

There are multiple Revenue & Cost centres in both the Excels.

 

THE COST CENTRE IS UNIQUE

The requirement.

 

For every Revenue Cost Centre, I must get the corresponding Cost Centre in Excel One, read all the Cost Centres in Excel Two, get the corresponding Value and total them.

 

Expected Output

 

23C220603 IS THE REVENUE CC in Excel One

4435757 IS THE TOTAL VALUE OF THE REVENUE CC in Excel Two.

 

23C2206034435757
4 REPLIES 4
davidskaife
14 - Magnetar

Hi @Kallis 

 

Thanks for updating the data, it makes more sense now. Please see the attached as one way of doing this:

 

DavidSkaife_0-1753175582967.png

 

Join Excel One to Excel Two using Cost Centre as the join condition, then using the Summerize tool group on Revenue CC and Sum the Values.

 

Workflow attached

Kallis
8 - Asteroid

Thanks @davidskaife 

It worked like a charm

davidskaife
14 - Magnetar

Hi @Kallis 

 

Happy to help, would you mind marking my post as the accepted solution as well?

Kallis
8 - Asteroid

Yes @davidskaife 

I have done that already

Labels
Top Solution Authors