Formatting error in filter?


I cant figure out what im doing wrong in this query is there a formatting error im not seeing in my filter?

from(bucket: “test”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“_field”] == “one” or r[“_field”] == “two” or r[“_field”] == “three” or r[“_field”] == “four” and “three” == “56860437”)
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> pivot(
columnKey: [“_field”],
valueColumn: “_value”

Any query masters willing to help? :slight_smile:


@MaxJ I’m guessing it’s: and "3" == "56860437". This will never be true so you’re filtering out everything. I’m not sure exactly what you’re trying to compare here, so I can’t offer an alternative.