from(bucket: “bucket”)
|> range(start: 2022-04-01 10:43:04t, stop: 2023-03-31 10:43:04)
|> filter(fn: (r) => r[“_measurement”] == “measurement”)
|> filter(fn: (r) => r[“_field”] == “filed”)
|> group(columns:[“_field”])
|> window(every: 3mo)
|> sum()
|> map(fn: (r) =>({ r with _time: r._start}))
|> window(every: inf)
|> yield()
I’m assuming you have data in “bucket” for 2023, yes?
Can you give me an example of what your raw data looks like? That would help me debug what your query is doing and why it might be missing results