Hi,
InfluxDB2 is really cool, however i am having issues with the .CSV export. It generates .CSV file in a format where the columns have a unique identifier “0”,“1”… with values and time stamp in different columns.
I am looking more for having my measurements as headers of the CSV file and corresponding values below the respective column headers. I did try building a query but Influx db spits out the same report every time.
import "influxdata/influxdb/schema"
from(bucket: "azfunc-test-influx-bucket")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "temperature" or r["_measurement"] == "pressure" or r["_measurement"] == "humidity")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["device_id"] == "14aitbr8ccq")
|> schema.fieldsAsCols()