Adding Month Average to Pivot Table

Mel123

New Member
Joined
Jan 9, 2019
Messages
3
Hi,

sorry if this is a very simple question but I cannot figure it out.

I would like to a month average line to my pivot chart, but if I use the average function in excel, it will give me the average by each individual employee. how do I show a total month average?

I need it as a pivot chart as there is new monthly data so I'll be adding the timeline slicers.

Date (dd/mm/yyyy)
Employee
Total Amount
Month Average (excel)Month Average (expected)
01/01/2017
A
100
100
02/01/2017
B
150
150
125 (Jan 17)
02/02/2017
C
200
200
200 (Feb 17)
01/03/2017
D
220
220
220 (Mar 17)

<tbody>
</tbody>

Thanks in advance
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
something like this?

PowerQuery
DateEmployeeMonth AverageTotal Amount
JanuaryA, B
125​
250​
FebruaryC
200​
200​
MarchD
220​
220​
PivotTable
Date (Month)Sum of Total AmountMonth Average
Jan
250​
125​
Feb
200​
200​
Mar
220​
220​
Grand Total
670
167.5
Both
DateEmployee Month Average Total Amount
JanuaryA, B
125​
250​
FebruaryC
200​
200​
MarchD
220​
220​
Grand Total
545
670
 
Last edited:
Upvote 0
I can't post attachments, but I basically need to display the data by employee each month, then with a month average line to show which employees are above or below this month average line.

Can this be done with pivot chart? If I manually create a table as below, I can get the desired output, but I can't figure it out with pivot table.

Manual Table

Employee Name
Average Month Spend
Employee A
Employee B
Employee C
 
Upvote 0
something like this?

Employee NameJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
Avg
486.2833333​
301.02​
298.7766667​
363.14​
313.0333333​
330.2766667​
332.3533333​
283.92​
468.2766667​
323.62​
259.8133333​
309.535​
Apple
511.5​
404.14​
413.02​
353.75​
343.54​
492.57​
324.09​
347.81​
220.23​
194.8​
192.23​
Banana
181.52​
176.45​
181.95​
292.65​
186.42​
177.15​
264.49​
177.64​
597.64​
448.13​
249.57​
190.92​
Carrot
765.83​
322.47​
301.36​
443.02​
409.14​
321.11​
408.48​
326.31​
586.96​
327.93​
337.64​
428.15​

chart.jpg


this is not a PivotTable but PowerQuery only
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

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