--- title: Create custom aggregate functions description: Create your own custom aggregate functions in Flux using the `reduce()` function. influxdb/cloud/tags: [functions, custom, flux, aggregates] menu: influxdb_cloud: name: Custom aggregate functions parent: Custom functions weight: 301 related: - /flux/v0/stdlib/universe/reduce/ source: /shared/influxdb-v2/query-data/flux/custom-functions/custom-aggregate.md ---