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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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