Error Bars on pivot charts

Dwalker

New Member
Joined
May 25, 2016
Messages
13
Hi

I'm having some issues with error bars on a pivot chart I have created.

The underlying data set is grouped into 3 separate materials.
Each material has several repeat tests associated (so for example the table will have several rows of numerical data, with the first cell in each row containing "Material 1", "Material 2" or "Material 3").
A pivot table is summarising this data, so it can provide either the raw test data or averages for each material.

When I create a pivot chart from this data, all works as expected until I come to add error bars. It seems to calculate the error bars based on the standard deviation of the entire data set rather than the group. So the error bar is the same width and position for material 1, 2 and 3.

Is there any way to make it so that it uses the standard deviation for the group, ie "material 1"?

Many thanks
 

Dwalker

New Member
Joined
May 25, 2016
Messages
13
Thanks! Is there any way of achieving that in conjunction with a pivot table? Because users are likely to filter and unfilter the chart, changing what standard deviations would be required.
 

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,728
You couldn't really use the same pivot table, because all the data in the pivot table goes into the chart as plotted series, and you don't want to plot the standard deviations as series.

You could do something with a duplicate pivot table, which instead of showing the values shows the standard deviation of the values. You can keep the pivot tables in sync if you use slicers to filter them.

Or you could use some VBA that calculates new standard deviations when the pivot table is refreshed or filtered.
 

Forum statistics

Threads
1,082,067
Messages
5,362,992
Members
400,705
Latest member
Kyrie

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top