Runnning this in Grafana gives me an error
from(bucket: "EnergieCnt")
|> range(start: now/d)
|> filter(fn: (r) => r["_measurement"] == "EnergieCnt")
|> filter(fn: (r) => r["Area"] == "Main")
|> filter(fn: (r) => r["_field"] == "Gas")
|> aggregateWindow(every: 1d, fn: last)
|> derivative(unit: 1d, nonNegative: true, columns: ["_value"], timeColumn: "_time")
|> limit(n:1, offset: 0)
|> drop(columns: ["_start","_stop","_measurement","host","_field","Area"])
if i change |> range(start: now/d) to |> range(start: -1d) it works, but i want to get the used gas from the start of today.
the query inspector report the error invalid: error @2:23-2:24: undefined identifier d
Is this not working with the new flux language ?