Power Pivot monthly calculation not working for annual calculation

Magriza

Well-known Member
Joined
Nov 16, 2005
Messages
509
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I have a simple calculation in my table that divides the monthly sales by the number of customers that to give me an average sales per customer.
Power Query:
=DIVIDE(tbl_financial[Gross revenue],tbl_cust[Sum of cust)

This works to give the correct monthly value, but the annual total is being incorrectly given as a sum of the monthly totals rather than [SUM(sales)/SUM(cust)]. I have tried using this, but then the monthly total is incorrect. I've also tried variants of CALCULATE and FILTER but cannot get this to work at all - although I am new to Power Pivots.

There are no direct connections between the two tables as they would need to be many to many relationships that aren't supported. So I have created a separate table with the months and am using this to join to both. This may not be the best way to do it, but it works for retrieving the right data.

Any help much appreciated!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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