Global variable not working in public dashboard

Hey there, i have a curious problem


. As soon as i start to use the global timepicker variables in a public dashboard, the dashboard crashes

While this works in the public version

from(bucket: “Meh Bucket”)
|> range(start: -30d})
|> filter(fn: (r) => (r._measurement == “test” and r._field == “test1”))
|> aggregateWindow(every: $__interval, fn: mean)

this does not

from(bucket: “Meh Bucket”)
|> range(start: ${__from:date}, stop: ${__to:date})
|> filter(fn: (r) => (r._measurement == “test” and r._field == “test1”))
|> aggregateWindow(every: $__interval, fn: mean)

In the non-public version, the dashboard works fine with both prompts

Any idea why?

Is this a typo introduced during copy / paste? Curly brace should not be there:

|> range(start: -30d)

Sadly yes, this was only a copy pasta failure for posting it here. Still thanks a lot for reacting and checking :smile:

SOLVED

For anyone who is interested, ${__from:date} and ${__to:date} are not supported in public dashboards. Use start: v.timeRangeStart, stop: v.timeRangeStop instead