custom error bars in pivot chart based on calculated field

Peter1971

New Member
Joined
Mar 10, 2019
Messages
1
Is it possible to create custom error bars in a pivot chart that are based on a calculated field?



I would like to create a bar chart representing PROPORTIONS with error bars that represent the CONFIDENCE INTERVALS. My data contains N items that either can be "failed" (0) or "passed" (1). Assume that X is the amount of items that passed, then the proportion of passed items is p=X / N.



In a pivot table, the Proportion p can be easily obtained in a calculated field, using the "sum of passed items" (X) and the "count of items" (N). The confidence interval of a proportion is also a function of X and N (I will not bother you with the formulas). Therefore, these confidence intervals can be obtained with a calculated field as well.



The pivot table works nicely, even when filters are applied; since the "sum of X" and the "count of N" are updated correctly, the formulas for the confidence intervals will be calculated correctly as well.



How nice it would be to make error bars based on this calculated field that represents the confidence interval...



(I use Excel 2013.)
 

Forum statistics

Threads
1,081,477
Messages
5,358,917
Members
400,515
Latest member
Finagill

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top