Pivot Chart - Mean Line

*shudder*

Well-known Member
Joined
Aug 20, 2009
Messages
502
Office Version
  1. 2016
Platform
  1. Windows
Hi Guys,

I have been searching around for an answer to this for a couple of hours and struggling to find a solution.

I would like to add a dynamic mean line into a pivot table/chart dependent on which department and month I am looking at.

Source data is set out like this where I have a formula to calculate the average:

Name
Dept
Month
Volume
Average
One

AA
January
10
25
Two

AA
January
15
25
Three

AA
January
50
25
Four

BB
January
20
73

Five

BB
January
50
73

Six

BB
January
150
73

One

AA
February
15
15
Two

AA
February
10
15
Three

AA
February
20
15
Four

BB
February
30
40
Five

BB
February
40
40
Six

BB
February
50
40

<tbody>
</tbody>

With the pivot table data currently looking like this with slicers for Name, Department and Month:

Name

Volume
Average

One

10
25

Two

15
25

Three

12
25
Four

20
73

Five

50
73

Six

150
73


<tbody>
</tbody>

What I would like the pivot table to do is adjust theaverage/mean dependant on which slicer items are selected i.e.


Slicer Selections
Dept: AA
Month: January
Name: One, Two

Pivot would show

Name

Volume
Average
One

10
12.5
Two

15
12.5

<tbody>
</tbody>

Thanks in advance


Stuart
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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