# Handle Tag Values in Dynatrace Query Language (DQL)

**URL:** <https://community.dynatrace.com/t/handle-tag-values-in-dynatrace-query-language-dql/40061>\
**Category:** DQL\
**Tags:** dql\
**Created:** [June 5, 2023, 10:06am UTC](https://community.dynatrace.com/t/handle-tag-values-in-dynatrace-query-language-dql/40061 "2023-06-05T10:06:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tiit\_Hallas](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@Tiit\_Hallas](https://community.dynatrace.com/u/Tiit_Hallas)\
**Post date:** [July 6, 2023, 1:12pm UTC](https://community.dynatrace.com/t/handle-tag-values-in-dynatrace-query-language-dql/40061/7 "2023-07-06T13:12:52Z")

</div>

ah, clear. In that case it makes sense to use contains indeed. and the full solution for you might be something like this:

```markup
fetch dt.entity.service
| fieldsAdd softwareTechnologies, tags
| filter contains(toString(softwareTechnologies), "IBM_WEBSPHERE_APPLICATION_SERVER")
| expand tags
| filter contains(toString(tags), "<my_tag>:") // mind the colon at the end
| parse tags, "ld:key ':' ld:tag_value"
| summarize count(), by: {tag_value}

```

---

_[View the full topic](https://community.dynatrace.com/t/handle-tag-values-in-dynatrace-query-language-dql/40061)._
