--- title: Comparing values from different buckets seotitle: Compare the last measurement to a mean stored in another bucket description: > Compare the value from the latest point to an average value stored in another bucket. This is useful when using the average value to calculate a threshold check. influxdb/v2/tags: [queries] menu: influxdb_v2: name: Compare values from different buckets parent: Common queries weight: 104 source: /shared/influxdb-v2/query-data/common-queries/compare-values.md ---