Skip to main content
Since 1.0.0 Calculate the time-weighted average. Equal to integral divided by the elapsed time. Note that there is a key difference to avg(): If there is exactly one value, avg() would return that value, but average() returns NULL.

Samples

Calculate the time-weighted average of the column val, using the ‘last observation carried forward’ interpolation method:

Arguments

The syntax is:

Returns