How to display time since last null value

Hi,

I am using influxDB with grafana.

I am interested in showing the amount of time since the last null value as a single stat panel. I am familiar with the stat “Time of last point” as I use it to display when the last data point was taken. I am just not sure how to use it to display the time since the last null value.

Any thoughts?
Thanks in advance!