Excel powerpivot: average customers by month with certain total sales

jowrwn

New Member
Joined
Feb 17, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Please help to write code in Excel 2016 Powerpivot.

Thank you.
Johanes

ItemDateCust NoAmount
A
01-Jan​
A1
350​
B
02-Jan​
A1
200​
Jan2 customers with total sales >= $700 (A1 and B1)
C
03-Jan​
A1
300​
1 customer with total sales < 700 (C1)
A
04-Jan​
B1
400​
B
05-Jan​
B1
200​
Feb1 customer with total sales >= $700 (C1)
C
06-Jan​
B1
150​
3 customers with total sales < $700 (A1, B1 and D)
A
07-Jan​
C1
100​
B
08-Jan​
C1
200​
A
01-Feb​
A1
50​
ResultAverage customer with sales >= $700 during Jan till Feb is (2+1)/2 = 1,5
B
01-Feb​
A1
50​
Average customer with sales < $700 during Jan till Feb is (1+3)/2 = 2
C
01-Feb​
A1
50​
A
01-Feb​
B1
50​
B
01-Feb​
B1
50​
C
01-Feb​
B1
50​
A
01-Feb​
C1
500​
B
01-Feb​
C1
200​
A
01-Feb​
D
10​
B
01-Feb​
D
20​
A
01-Feb​
D
30​
B
01-Feb​
D
40​
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,214,431
Messages
6,119,457
Members
448,898
Latest member
drewmorgan128

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