--- title: Calculate the moving average seotitle: Calculate the moving average in Flux list_title: Moving Average description: > Use `movingAverage()` or `timedMovingAverage()` to return the moving average of data. weight: 210 menu: influxdb_v2: parent: Query with Flux name: Moving Average influxdb/v2/tags: [query, moving average] related: - /flux/v0/stdlib/universe/movingaverage/ - /flux/v0/stdlib/universe/timedmovingaverage/ list_query_example: moving_average source: /shared/influxdb-v2/query-data/flux/moving-average.md ---