# Is it possible to group numerous management zones on one view

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779>\
**Category:** Open Q&A\
**Tags:** management-zones, tagging\
**Created:** [March 19, 2025, 12:03pm UTC](https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779 "2025-03-19T12:03:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MathX](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@MathX](https://community.dynatrace.com/u/MathX)\
**Post date:** [March 19, 2025, 12:03pm UTC](https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779/1 "2025-03-19T12:03:16Z")

</div>

Assume that I want to view entities that are present in _N_ different management zones. Since we can’t apply tags at the management zone level, is there another way to achieve this?

---

<div class="post-metadata">

**Author:** ![mizso74](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [March 19, 2025, 4:02pm UTC](https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779/2 "2025-03-19T16:02:10Z")

</div>

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

What would be the use case? Can you provide a little bit more explanation?

Thanks.

János

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [March 19, 2025, 8:17pm UTC](https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779/3 "2025-03-19T20:17:54Z")

</div>

Probably the easiest way in UI is to display a metric in Data Explorer with filter based on entity selector containing zones.

Example for hosts which are in zone1 and zone2:

```markup
builtin:host.cpu.user
:filter(and(or(in("dt.entity.host",entitySelector("type(host),mzName(~"zone1~"),mzName(~"zone1~")")))))
:splitBy("dt.entity.host")

```

Or use the Environment v2 entities API to query such entities.

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [March 19, 2025, 11:09pm UTC](https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779/4 "2025-03-19T23:09:30Z")

</div>

You can execute a Grail query for the entities and then compute the number of elements in the managementZones field.

Example DQL

```javascript
fetch dt.entity.host
| fieldsAdd mzCount = arraySize(managementZones)
| filter mzCount = 3

```

The above query will return hosts which belong to exactly three management zones.

---

<div class="post-metadata">

**Author:** ![MathX](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@MathX](https://community.dynatrace.com/u/MathX)\
**Post date:** [March 20, 2025, 9:19am UTC](https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779/5 "2025-03-20T09:19:12Z")

</div>

I have 150+ management zones. Some of these zones have entities, while the remaining ones will be added soon. I just need a view of all these zones. In this case, we can’t create a zone while trying. We need to incorporate all 150+ zone tags into one, which takes too much time.

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [March 21, 2025, 1:18pm UTC](https://community.dynatrace.com/t/is-it-possible-to-group-numerous-management-zones-on-one-view/50779/6 "2025-03-21T13:18:02Z")

</div>

Hello,&nbsp;[@MathX](https://community.dynatrace.com/user/86393)!  
Do any of the solutions proposed by our Community users work in your case? If so, please let us know by clicking the “accept as a solution” button. And if you still need our assistance - also give us a sign, we’ll figure something out.&nbsp;🙂&nbsp;  
EDIT: Thank you for coming back and accepting the solution, that’s the Community spirit!&nbsp;💪&nbsp;😁
