Doc_Count doesn't filter with the time range

Hello!

I have data coming via Elasticsearch in Grafana and we have noticed if we filter for the last 7days the count column which is the same as doc_count doesn’t take into consideration the time range filter.

Therefore, how do I get the count / doc_count to only display the value for entries in the time range?