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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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:
Total volume=
CALCULATE ( [sum volume], ALLSELECTED ( TestTable[Volume] ) )
sum volume=
SUM ( TestTable[Volume] )

<tbody>
</tbody>

Peter
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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