# Combining two entity types in a single Data Explorer query

**URL:** <https://community.dynatrace.com/t/combining-two-entity-types-in-a-single-data-explorer-query/40152>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer\
**Created:** [June 9, 2023, 3:37pm UTC](https://community.dynatrace.com/t/combining-two-entity-types-in-a-single-data-explorer-query/40152 "2023-06-09T15:37:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [June 14, 2023, 11:06pm UTC](https://community.dynatrace.com/t/combining-two-entity-types-in-a-single-data-explorer-query/40152/2 "2023-06-14T23:06:31Z")

</div>

Hi&nbsp;[@paulito](https://community.dynatrace.com/user/56467),

to be honest, I’m not sure if the following sample query will work or not, but you can give it a try for the single value and let me know,

nagios.\_Check\_CPU\_Stats.iowait.percent:filter(and(or(in(“dt.entity.custom\_device”,entitySelector(“type(custom\_device),entityName.equals(~“blah1~”)”)),in(“dt.entity.custom\_device”,entitySelector(“type(custom\_device),entityName.equals(~“blah2~”)”)),in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“blah3~”)”)),in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“blah4~”)”)),in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“blha5~”)”)),in(“dt.entity.host”,entitySelector(“type(host),entityName.equals(~“blah6~”)”))))):limit(20)

---

_[View the full topic](https://community.dynatrace.com/t/combining-two-entity-types-in-a-single-data-explorer-query/40152)._
