Hi,
So here is what I am trying to do…
Take this query…
dbs = from(bucket: “data”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == “oracle_ash”)
|> group(columns: [“database”])
|> aggregateWindow(every: 5m, fn: count)
|> aggregateWindow(every: -v.timeRangeStart, fn: sum)
|> group()
|> top(n:5)
|> keep(columns:[“database”])
This returns a list of 5 values from the column database. I want to take those 5 values and use them to filter a different query. But I can’t figure out the nomenclature for using a variable in the filter function, much less how to get all values included.