groupArrayMovingAvg
Introduced in: v20.1.0 Calculates the moving average of input values.The function uses rounding towards zero.
It truncates the decimal places insignificant for the resulting data type.
window_size— Size of the calculation window. If left unspecified, the function takes the window size equal to the number of rows in the column.UInt64
numbers_for_summing— Expression resulting in a numeric data type value.(U)Int*orFloat*orDecimal
Array
Examples
Usage example
Query
Response
Query
Response