# Data Explorer :: Filtering Metrics By Partial Service Name and Partial Request Name

**URL:** <https://community.dynatrace.com/t/data-explorer-filtering-metrics-by-partial-service-name-and-partial-request-name/46802>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer\
**Created:** [July 24, 2024, 4:42pm UTC](https://community.dynatrace.com/t/data-explorer-filtering-metrics-by-partial-service-name-and-partial-request-name/46802 "2024-07-24T16:42:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmozone](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@rmozone](https://community.dynatrace.com/u/rmozone)\
**Post date:** [July 24, 2024, 4:42pm UTC](https://community.dynatrace.com/t/data-explorer-filtering-metrics-by-partial-service-name-and-partial-request-name/46802/1 "2024-07-24T16:42:48Z")

</div>

Hello!

I’m working with Dynatrace’s Data Explorer in Advanced Mode and am trying to filter a specific metric, specifically `builtin:service.requestCount.total`, based on partial matches for both service name and request name. I’m looking for a way to achieve this using either glob patterns, regex, or any other method that allows for partial matching.

Could anyone provide guidance or examples on how to construct such a query?

Any help or pointers towards relevant documentation would be greatly appreciated!

Something like this:

```java
builtin:service.requestCount.total
  :filter(
    and(
      in("dt.entity.service",entitySelector("type("SERVICE_METHOD"),entityName.in(~"/url1~",~"/url2")"))
    ))

```

Thank you!

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 25, 2024, 6:55am UTC](https://community.dynatrace.com/t/data-explorer-filtering-metrics-by-partial-service-name-and-partial-request-name/46802/2 "2024-07-25T06:55:00Z")

</div>

Hi,

You can use _contains_:

```markup
builtin:service.requestCount.total
:filter(and(or(in("dt.entity.service",entitySelector("type(service),entityName.contains(~"XXXXX~")")),in("dt.entity.service",entitySelector("type(service),entityName.contains(~"YYYYY~")")))))
:splitBy("dt.entity.service")
:sort(value(auto,descending))

```

Best regards
