Gauge time range change not working

Hi guys,
I’m just starting with Grafana. And really first of all, congratulations to all involved people. It’s amazing project !!

I have a doubt about Gauge visualization.
I’m using a simple query like this (data is coming from mssql):

DateTime as time
WHERE Meas_name = ‘xxxx’

Also I set Format as ‘Time Series’.

The result of this query is working properly in Graph visualization (even changing time range), but if I switch it to Gauge, even it’s showing the average value properly as I set in the config, the time range filter is not working and always show the average of all table data.

Is there any trick to make it work?
Thanks in advance !!!