How to use filter queries in elasticsearch

Hi! i am using grafana 6.7 and elasticsearch data source. The only way to group by filter queries is using Date Histogram as well ? because i would like to use the filter queries like i use the Group by terms option. For example when i want to group more than one metric, each new metric is showed as a new row, thats not the behaviour that i want. Here is the difference with the group by terms:

How can i achieve sometime like the first image with the filter queries, because i need a permanent list of services in the table, but if in my time range elastic dont receive a event with that service it wont show in the group by terms option.

Thank you