Grafana v11.3: non-existent function "max" in Math expression

Grafana docs clearly states that function max() exists.

So i try to utilize it in order to check if any of the queries exceed a threshold of 5000000:

max($G, $D) > 5000000

But Grafana complains that max() function is non-existent.

Datasource: Elasticsearch
Function applied to all queries: Last
Mode: Drop non-numeric values

A glimpse into the values that are returned by one of the queries:

So i dont understand whats going on - should i do some initialization or instantiation or declaration or whatever in order to receive the fruits of max() services?

Hi,
Max exists as Reduce expression, not Math expression. In math expression you’d have to do
$G > 5000000 || $D > 5000000
And it should work the same