Limit output in time

Hello,

My values are output normally via:

from(bucket: “iobroker_all”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“_measurement”] == “Gastaeglich”)
|> filter(fn: (r) => r[“_field”] == “value”)

However, I would like to limit the display of the values to half a year (“2022-10-01 00:00:00 to 2023-03-31 23:59:59”)

How can I install this above?

Hi @dgr75

You mean like this?

from(bucket: "iobroker_all")
|> range(start: 2022-10-01T00:00:00Z, stop: 2023-03-31T23:59:59Z)
|> filter(fn: (r) => r["_measurement"] == "Gastaeglich")
|> filter(fn: (r) => r["_field"] == "value")

why didn’t I see that? It is so easy. Thank you !