Environment
OS: 6.12.21-4-MANJARO
Grafana: 11.6.0-pre
MariaDB: 11.7.2
Goal
I would like “no value”, that is dates where data is missing, to be interpreted as a data point with value 0.
Plan A
“Standard options > No value > What to show when there is no value” is set to 0.
I expected this feature to generate data points that appear as zeros in the graph.
Other attempts
I followed several posts here in the forums that suggest using a Grafana macro like $__timeGroup(Date
,‘1d’, 0), but I fail to incorporate it into my query:
By my best attempt I get the error message “Data is missing a time field”.
Other suggestions were appending “vector(0)” SQL arguments to my formula or creating a calendar table. Maybe the latter works, but I would expect the “no value” feature to do the job and I would like to know whether it is possible at all.
Thank you in advance.