Hi, I am still quite new to the use of the Google App-sheet and formulas, Pardon me.
So Let me be as basic as possible. I am trying to Find out the Moving average for a scorecard with Four (4) columns
Customer Engagement
Customer interactions
Process Compliance
Issue Resolution
I want App-sheet to give me an overall average even if I do not capture a value for any of the columns (which I regard as Not Applicable)
I currently use the formula
(AVERAGE(LIST([Customer Engagement],[Issue Resolution],[Process Compliance],[Customer Handling]))), but it does not ignore a column if I don’t capture a value for it
@lizlynch I think it could be relevant to add the example of removing blank items on the documentation “Substract values from the list”, as this question comes quite regularly (just a suggestion )
As I see matters you are conflating two separate issues.
Firstly a running or moving average filter will take several samples either before, after or on either side of the current data sample and the function you are using above cannot do that.
Try first using excel or Tableau Public
Secondly, then you wish to additionally also average several running or moving average columns which will not work if the first step is not correct.
APPSHEET can’t give anyone anything unless they program and use APSHEET correctly, the old “junk in junk out” adage.
I think you need to apply your mind a little to this one.
It appears you want to do (5+10+5)/30 = 66% and (5+10+10)/30=83.3% but that is not what the formula you guys are haggling about is doing.
The Customer Engagement value of 5 is what? The count or the average or the moving average but it is certainly not a LIST?
So ([Customer Engangement]+[Issue Resolution] + [Process Compliance ])/30 provides the answer you are seeking.
So SUM(LIST([CE],[IR],{PC]+[CH] - LIST(“”))) = SUM(LIST(5,10,10,0) - LIST(“”)) = SUM(LIST(5,10,0)) = 15 is incorrect as it simply removes duplicates and not the zeroes ?
That is why you get 50% for each scenario as each results in SUM(10+5)/30 = 15/30 = 50%.
So as I said you are only getting what you are programming APPSHEET to provide
The numerator is not the problem it is the denominator that is the problem and what you want is
(CE + IR + PC + CH)/(MAX(CE)+MAX(IR)+MAX(PC)) where the numerator excludes any column which is zero
So you simply have to test how many are 0 and reduce the NUMERATOR like
10NONZERO so you would get in each case above 103 or (5+10+5)/10*3 = 20/30 = 66.66% etc
Without list subtraction: The values are 10, 5, 10, and 0, which average to 62.5%
With list subtraction: The values are 10, 5, and 0 (the duplicate 10 value is removed since list subtraction is in part equivalent to applying the UNIQUE function), which average to 50%
I tested the following brute force approach of applying a condition to the inclusion of each value, and still encountered the issue–the result was 62.5%: