--- title: "How is the average of monitorings calculated?" slug: "1723138799" tags: ["Assets"] updated: 2026-07-22T14:47:23Z published: 2026-07-22T14:48:13Z canonical: "help.ila.cegid.com/1723138799" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.ila.cegid.com/llms.txt > Use this file to discover all available pages before exploring further. # How is the average of monitorings calculated? - [x] PT - [x] ES --- When inserting monitoring values, the moving average is calculated for that value considering the average window defined in the monitoring and the average window value used on the calculation is also saved. It is performed for the next N-1 values (in the most recent date), and N is the average window value defined on the monitoring. **Example** The calculation of the average for a value is that value's sum with the previous N-1 values (in the oldest date) dividing by N, and N is the average window value defined on the monitoring. | Value | Date | Average | Average window | | --- | --- | --- | --- | | 2 | 15/07/2020 9:00:00 | | | | 7 | 13/07/2020 9:00:00 | 5,67 | | | 6 | 10/07/2020 9:00:00 | 6 | | | 4 | **07/07/2020 9:00:00** | 5,67 | | | 8 | 06/07/2020 9:00:00 | | | | 5 | 03/07/2020 9:00:00 | | | | 10 | 01/07/2020 9:00:00 | | | After inserting the value 4 for the day 07/07/2020 we remain with the following values: - Average window: 3 - The value 4 is inserted in a date between the values 8 and 6: 10, 5, 8, 4, 6, 7, 2 - The calculation of the average for the value 4 is: (4 + 8 + 5) / 3 = 5,67 - The calculation of the average for the value 6 is updated to: (6 + 4 + 8) / 3 = 6 - The calculation of the average for the value 7 is updated to: (7 + 6 + 4) / 3 = 5,67