In a grafana dashbaord, I want to filter by StorageUnits and then by location. There is an all-option in the StorageUnits, but when this option is clicked, the location variabele gives “all” too. There I want a list with all the different locations? What is wrong in my code?
import “influxdata/influxdb/v1”
v1.tagValues(
bucket: “BUCKET”,
predicate: (r) => (r[“_measurement”] == “counterA”) and ((“${StorageUnits}” == “All”) or contains(value: r[“storage_unit”], set: [“${StorageUnits}”])),tag: “locatie”)
|> distinct(column: “_value”)