Bit struggling with the timelion syntax so any help would be appreciated. I'm trying to get a running average (not moving average) over time so basically what I like to achieve is a calculation that would provide me the accumulated sum of a value divided by the total amount of documents at the defined timeframes.
Take below as simplified example, I get a few docs per day, each having a value. These need to be aggregated by day and then I want to divide the sum of accumulated values by the count of total accumulated documents. This running average (or accumulated average, not sure about the correct terminology) is what I want to plot.
day |doc | value  | running avg
1   |  1    |    4   | -
1   |  2    |    3   |         3.5    <<     day 1 = (4 +3)/2 docs
2    |  1    |    3 | -
2    |  2     |   5     |       3.75  <<   day 2 = (4 + 3 + 3 + 5) / 4 docs
3    |  1    |   2    |        3.4  <<      day 3 =  (4 + 3 + 3 + 5 + 2) / 5 docs
Any advice?
