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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,215,086
Messages
6,123,033
Members
449,092
Latest member
ikke

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