Unable to get data after adding custom filter variable

Hello ,

I have added a filter to filter by firmware version , I have written following query

|> filter(fn: (r) => r[“_measurement”] == “Infra” or r[“_measurement”] == “AppMon”)
|> filter(fn: (r) => r[“_field”] == “MUtil” or r[“_field”] == “Firmware_Version”)
|> filter(fn: (r) => contains(value: r[“region”], set: ${Region:json}))
|> filter(fn: (r) => contains(value: r[“Firmware_Version”], set: ${FW_Version:json})

But getting this error

The Firmware_Version is a field in Infra measurement , as you can see there is already a filter for region which is working fine but when I tried to add for Firmware Version ,it isnt working and getting error ,Please help ,Thanks.

Note:Lines in bold are added by me , if we remove that the query is working fine

grafana version 8.2.6

Hi @vnightrider,

Thanks for opening this post.

Please review the submission template and include more details:

  • What Grafana version and what operating system are you using?
  • What is your datasource?
  • What visualization panel you are using e.g. time-series, bar chart, histogram etc?
  • What are you trying to achieve?
  • How are you trying to achieve it?
  • What happened?
  • What did you expect to happen?
  • Can you copy/paste the configuration(s) that you are having problems with?
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
  • Did you follow any online instructions? If so, what is the URL?