How can I add extra time value to timeFilter

Hi,
Is it possible to add extra hours to my query $timeFilter

ex.: my current query is
SELECT mean("value") AS "some value name" FROM "cpu" WHERE time > now() - 8h GROUP BY time(1m) fill(previous)

When I change the timefilter I have only last 8h data, I want to add some extra hours to my time filter, something like this;

SELECT mean("value") AS "some value name" FROM "cpu" WHERE time > now() - ($timeFilter + 8h) GROUP BY time(1m) fill(previous)

ex.: Last 7 days + 8h

Grafana version 7.0.3

regards,
Ganendran

Hi @ganendranm,

What datasource are you using? Have you considered upgrading for better support? Grafana has improved these features a lot since 7.0.3.

In 7.1.2, for instance, they introduced the __from and __to global variables: