How do I downsample data using multiple operations within the same bucket (in Influxdb 2.0)?

Hello @Zane470,
You can specifying the measurement in the to() function. You would just need to write dummy data to that bucket first to initialize the measurement. You can construct a table and write it to the bucket first after adding a measurement.

Then you can write the outputs do those measurements:

|> to(bucket: "some_bucket_downsampled", _measurement: "mean")

Alternatively you can create a task for each downsampled aggregation.

Also, please check out these resources as well: