Hello
New to the forum. I was wondering if somebody could be so kind as to help me with the following, which I have struggled with for hours now wihtout finding a solution to.
I am trying to derive a function which generates the average of the first N non-negative values of a columns.
Example column (where N=5):
0
2
3
0
0
0
-5
3
7
0
0
8
For the column above, the calculation would be [2+3+(-5)+3+7]/5 = 2
Many, many thanks in advance!
New to the forum. I was wondering if somebody could be so kind as to help me with the following, which I have struggled with for hours now wihtout finding a solution to.
I am trying to derive a function which generates the average of the first N non-negative values of a columns.
Example column (where N=5):
0
2
3
0
0
0
-5
3
7
0
0
8
For the column above, the calculation would be [2+3+(-5)+3+7]/5 = 2
Many, many thanks in advance!