# Extracting details from lookup DQL

**URL:** <https://community.dynatrace.com/t/extracting-details-from-lookup-dql/39287>\
**Category:** DQL\
**Tags:** dql, apps, latest-dynatrace\
**Created:** [April 13, 2023, 1:28pm UTC](https://community.dynatrace.com/t/extracting-details-from-lookup-dql/39287 "2023-04-13T13:28:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![educampver](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/educampver/32/29917_2.png) [@educampver](https://community.dynatrace.com/u/educampver)\
**Post date:** [April 13, 2023, 3:45pm UTC](https://community.dynatrace.com/t/extracting-details-from-lookup-dql/39287/4 "2023-04-13T15:45:07Z")

</div>

You’re right! My bad. What you need is a bit more complex and I’m not sure the format you need it in, here’s what I came up with:

```markup
| filterOut ...
| fieldsAdd technologiesString = toString(softwareTechnologies)
| parse technologiesString, "'[' ARRAY{'type:' WORD*:type (',edition:' LD ',version:' LD (', ' | ']'))}{1,}:types"
| parse technologiesString, "'[' ARRAY{'type:' LD ',edition:' WORD*:edition (',version:' LD (', ' | ']'))}{1,}:editions"
| parse technologiesString, "'[' ARRAY{'type:' LD ',edition:' LD ',version:' LD*:version (', ' | ']')}{1,}:versions"

```

This way, you’ll have 3 arrays containing the types, editions, and versions. Additionally, if you need to remove the duplicates, you can use:

```markup
| fieldsAdd types = arrayDistinct(types), editions = arrayDistinct(editions), versions = arrayDistinct(versions)

```

Hope it works as expected this time.

---

_[View the full topic](https://community.dynatrace.com/t/extracting-details-from-lookup-dql/39287)._
