How to set a single threshold for a panel with two queries

  • What Grafana version and what operating system are you using?
    Grafana 9.1.7

  • What are you trying to achieve?

How to set a single threshold for a panel with two queries, where the first query should not trigger the threshold. The threshold should only reflect the values ​​returned in the second query.

  • How are you trying to achieve it?
  • What happened?

I have a query that returns the duration of the first execution of the day of a batch routine and another that returns the remaining executions. I created the threshold for the second query and if the range displayed on the panel matches the value returned in the first query, the threshold does not respect the rule created and considers the value from the first execution to fill the background color.

  • What did you expect to happen?

The panel background color is expected to follow the threshold defined for the second query

  • Can you copy/paste the configuration(s) that you are having problems with?

Panel with two queries:

Panel with only the second query: