I have been trying to follow a very useful post from Erica Whalley at
I have run into a problem though.
this expressions requires an average, which I want to be dynamic.
=if(RowNo()=1 or count(Key)>([Average]),0,above(R2CUM)+(count(Key)<=(Average]))
I have tried using the average expression
but of course this just returns the count(Key) because it is averaging and aggregating it over the one week in the chart.
the only way around this I can find is to calculate the average manually as below
=if(RowNo()=1 or count(Key)>(count(total Key)/NoOfRows()),0,above(R2CUM)+(count(Key)<=(count(total Key)/NoOfRows())))
which is fine for highlighting points above/below the mean but I also want to highlight above or below the UCL and LCL.
so is there a way around this problem please?
thanks once again for your time.
Solved! Go to Solution.
Thanks Sunny - I was trying to reply through the inbox - hence the problem!
The formula in question is R2CUM. it works for highlighting points above and below the average but I have had to manually calculate the average as you will see in the expression. The problem is I want to do the same thing for over the UCL or under the LCL - which I can't do from a manual expression -hence I have a problem...
The average is being calculated from
rather than by using an expression from avg()
this means I cannot use stdev() to adapt the expression to highlight above and below UCL or LCL.