Use previous values if there are no new values

Any solution on this topic? I run in a similar one: https://community.grafana.com/t/no-data-if-last-influxdb-entry-is-out-of-range/107457