# Dater Explorer Code Query - filter synthax

**URL:** <https://community.dynatrace.com/t/dater-explorer-code-query-filter-synthax/32109>\
**Category:** Automations\
**Tags:** data-explorer, slo\
**Created:** [July 14, 2021, 3:44pm UTC](https://community.dynatrace.com/t/dater-explorer-code-query-filter-synthax/32109 "2021-07-14T15:44:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 15, 2021, 7:11am UTC](https://community.dynatrace.com/t/dater-explorer-code-query-filter-synthax/32109/2 "2021-07-15T07:11:32Z")

</div>

Hello&nbsp;[@r\_weber](https://community.dynatrace.com/user/35901)&nbsp;,

first I don’t think you can count individual requests in metric selectors at all. These metrics selectors work on timeseries data only. For counting the individual requests, you need to use the calculated service metrics and then use the metric for SLO for example. I’d also love to have the capability to count number requests with response time condition in the SLO or custom chart without using calculated service metrics, but I don’t think this will come anytime soon as it is a different source of information.&nbsp; So filter transformation works on dimensions. So if a metric has multiple dimensions, you can filter on any of them.

Back to your question, you need to specify an aggregation first. So instead of:

```markup
builtin:service."keyRequest".response.server:filter(series(avg,lt,300000)):splitBy():count

```

You need will need:

```markup
builtin:service."keyRequest".response.server:count:splitBy():filter(series(avg,lt,300000))

```

This will give you the number of key requests for which the average response time in the interval is less than 300000 microseconds. I’m not sure if this is the output you want.

I believe you need the number of key requests which are faster than 300000 which is not possible without using calculated metrics.

---

_[View the full topic](https://community.dynatrace.com/t/dater-explorer-code-query-filter-synthax/32109)._
