Sumifs on two columns

helge123

New Member
Joined
Dec 13, 2018
Messages
2
Hi all,
I am quite new to Power Pivot so please excuse my question - I have two columns: unique basket identifier and volume of SKU transactions. What I would like to do is to sum the volume of all SKU transactions that appear in each basket so that for each basket row the total basket size is indicated. An example could be

Basket Volume Total volume
1 2 5
1 3 5
2 5 10
2 3 10
2 2 10

I am completely stuck and would appreciate your help.

Best wishes,
Helge
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi all,
I am quite new to Power Pivot so please excuse my question - I have two columns: unique basket identifier and volume of SKU transactions. What I would like to do is to sum the volume of all SKU transactions that appear in each basket so that for each basket row the total basket size is indicated. An example could be

Basket Volume Total volume
1 2 5
1 3 5
2 5 10
2 3 10
2 2 10

I am completely stuck and would appreciate your help.

Best wishes,
Helge

Helge,

Here is a solution for you.
Define Range names for your data in Columns A and B, I used "Basket" and "Amount".
Then in Column C enter the following formula: "=SUMIF(Basket,A2,Volume)"

Give that a try and let me know if that gives you the desired result.
 
Upvote 0
Hi Frank,
Thanks for your response - the formula SUMIF does not exist in Power Pivot, does it? I would do it exactly like this in Excel, but don't know how to do a comparable action in Power Pivot.

Thanks,
Helge
 
Upvote 0
You are right! I didn't provide a solution for Power Pivot. Let me see if I can come up with something for that.
 
Upvote 0
These two measures worked for me:

<tbody>
[TD="class: xl65"]Total volume[/TD]
[TD="class: xl66, width: 495"]=
CALCULATE ( [sum volume], ALLSELECTED ( TestTable[Volume] ) )[/TD]

[TD="class: xl65"]sum volume[/TD]
[TD="class: xl66, width: 495"]=
SUM ( TestTable[Volume] )[/TD]

</tbody>

Peter
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top