# How to format a DQL to accept a "\*" wildcard?

**URL:** <https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678>\
**Category:** Dashboarding\
**Tags:** dql, dashboards\
**Created:** [April 23, 2026, 1:04pm UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678 "2026-04-23T13:04:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdavison2](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tdavison2](https://community.dynatrace.com/u/tdavison2)\
**Post date:** [April 23, 2026, 1:04pm UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678/1 "2026-04-23T13:04:13Z")

</div>

Hello,&nbsp; I’m creating a Dashboard that shows Service and Endpoint metrics.&nbsp; It first loads up every endpoint for a Service, but I have an $Endpoint variable that has a Default value of “\*”.&nbsp; In my tile, it fails when an Endpoint isn’t selected and it’s using the Default value.&nbsp; Could someone help me out on how I should structure the DQL to not fail on a wildcard, or if it’s another route I should be taking.

Here’s the DQL I am trying to use:

```markup
timeseries { sum(dt.service.request.count), value.A = sum(dt.service.request.count, scalar: true) }, filter: { matchesValue(endpoint.name, $Endpoint) }

```

Thanks,

Tom

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [April 23, 2026, 1:33pm UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678/2 "2026-04-23T13:33:17Z")

</div>

Try this

```markup
timeseries { sum(dt.service.request.count), value.A = sum(dt.service.request.count, scalar: true) }, filter: { in(endpoint.name, $Endpoint) }

```

Regards

---

<div class="post-metadata">

**Author:** ![tdavison2](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tdavison2](https://community.dynatrace.com/u/tdavison2)\
**Post date:** [April 23, 2026, 2:27pm UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678/3 "2026-04-23T14:27:41Z")

</div>

Hello, thank you very much for the quick response.&nbsp; I tried out the DQL but unfortunately, it doesn’t return anything when the wildcard is used in the Variable.

Thanks again,

Tom

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [April 23, 2026, 2:39pm UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678/4 "2026-04-23T14:39:29Z")

</div>

Dashboard tile

```markup
timeseries { 
sum(dt.service.request.count)
}, 
by: {
endpoint.name, 
dt.service.name
}
| filter matchesValue(dt.service.name, $Service)
| filter matchesValue(endpoint.name, $Endpoint)
| limit 5

```

Service Variable

```markup
smartscapeNodes SERVICE
| filter isNotNull(name)
| fields name
| limit 10

```

Endpoint Variable

```markup
fetch spans
| filter matchesValue(dt.service.name, $Service)
| filter isNotNull(endpoint.name)
| fields endpoint.name
| limit 5

```

---

<div class="post-metadata">

**Author:** ![tdavison2](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tdavison2](https://community.dynatrace.com/u/tdavison2)\
**Post date:** [April 23, 2026, 4:19pm UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678/5 "2026-04-23T16:19:06Z")

</div>

Hello, thank you for the details, still getting the same error with the Dashboard Tile example you provided:

**A string containing only the wildcard’\*’ isn’t allowed**.

Thanks again,

Tom

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [April 27, 2026, 6:54am UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678/6 "2026-04-27T06:54:19Z")

</div>

Could you please provide your variable DQL?

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [April 30, 2026, 6:46pm UTC](https://community.dynatrace.com/t/how-to-format-a-dql-to-accept-a-wildcard/55678/7 "2026-04-30T18:46:25Z")

</div>

wildcards are only allowed at he beginning or end not in the middle thats probably why
