How to add a Grand Total and Grand Average to a basic PowerPivot

tbobolz

Board Regular
Joined
Mar 18, 2010
Messages
148
Excel 2010, V2.

Hi All,

I have a basic power pivot table with years in the rows and months in the columns. So across the top it displays a column for Jan to Dec with a Grand Total in the last Column; however, I would like to also add a column that displays the average of all the months displayed. Yet I also need it to average only the number of current months. So a calulated field would not work if it was set to divide by twleve. I need it to adjust just like the grand total does as the file is updated monthly from one month to twelve months.

Thanks for any suggestions you can offer

Terry
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Ahhhh, I think I am almost there:rofl:, here is what I did to copy your suggestion:

=sum('EPSI SOAR MNDOG'[1-CASES])

Already had and works fine


=CALCULATE(AVERAGEX('EPSI SOAR MNDOG'[CASES]), VALUES('EPSI SOAR MNDOG'[DISCHARGE - FISCAL YEAR]), VALUES('EPSI SOAR MNDOG'[DISCHARGE - FISCAL MONTH DESC]))

Gives me the following error: Too few arguments were passed to the AVERAGEX function. The minimum argument count for the function is 2.


 
Upvote 0
If you are just passing a column, use AVERAGE(). AVERAGEX() is for doing stuff that is more complicated than that.
 
Upvote 0

Forum statistics

Threads
1,224,022
Messages
6,175,972
Members
452,691
Latest member
Tony_Almeida

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