Averaging
Last updated
Last updated
The averaging feature adds a moving average of the target value column to the dataset. Two new columns are added to the dataset whose names start with MA (Moving Average). MA12 is added by default, and the second column is configurable. The configuration sets up the moving average window size. This feature is a simple mathematical implementation.
Open a query page in edit query mode.
Select a meaningful time-series column and a value column.
Select the Averaging option from the operations selection box.
An averaging configuration box appears. This box contains a dropdown called ma window using which the window size of the moving average can be set. The bigger the window size the more curvilinear the graph becomes
Save the configuration and execute the query.
The resulting dataset contains two columns MA12 whose window size is 12 and another column with MA whose window is previously configured.
Create a new visualization or open an already existing visualization in edit mode.
Select the chart type as a line for better visualization.
Select the time column as the X column and the value column as the Y column. Add the moving average columns i.e. columns with the prefix MA, into the Y column multi-selection box. A graph similar to the following picture must be rendered.