[SOLVED] Moving average calculation

Hi,

I noticed a bug in the calculation of moving averages, when there are multiple activities per day.

As you can see in the screenshot, I’m plotting a moving average of a ratio (power / heart rate reserve). The individual values of the 3 workouts are: 3.12, 2.61 and 3.11. The sum of these is 8.84, as you can see on the right of the screenshot.
But for the moving average, I would expect to take the average of those 3.
All my ‘normal’ values are in a range of ± 2-4. But now a value of 8.8 is included. Because of the nature of a moving average, this extreme value is carried along for a long time, making the graph useless.

There are however other cases where the sum would make sense. If you would plot a moving average of kiloJoules spend, you would want to include the sum of the workouts.

WhatsApp Image 2024-06-07 at 13.46.57

I aasume this is a custom activity field?
If so, go to the description tab of the config for it and you can select the multi-activity behaviour.

1 Like

wow, thanks!
Didn’t know this was possible :slight_smile:

Should’ve known everything is possible in intervals :smiley: