# Migration from Old Dashboard to New Dashboard

**URL:** <https://community.dynatrace.com/t/migration-from-old-dashboard-to-new-dashboard/51890>\
**Category:** Dashboarding\
**Tags:** management-zones, tagging, dashboards\
**Created:** [May 30, 2025, 6:45pm UTC](https://community.dynatrace.com/t/migration-from-old-dashboard-to-new-dashboard/51890 "2025-05-30T18:45:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarwanC](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marwanc/32/34480_2.png) [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Post date:** [May 30, 2025, 6:45pm UTC](https://community.dynatrace.com/t/migration-from-old-dashboard-to-new-dashboard/51890/1 "2025-05-30T18:45:14Z")

</div>

I am trying to convert this code from the old dash board to have it working on the new dashboard but is not showing.

The migration of the dashboard did not get this righ.

Count The no of Management Zone:

timeseries {  
management\_zone\_count = count(dt.entities, filter: { entity.type == “MANAGEMENT\_ZONE” })  
}

Count the Numbers of Tag:

timeseries {  
applied\_tags\_count = count(dt.entities, filter: { entity.type == “TAG” })  
}

I also tried this but none is working -

fetch dt.metrics  
| filter startsWith(metric.key, “dt.sfm.server.automatically\_applied\_tags”)

fetch dt.entities  
| filter entity.type == “TAG”  
| summarize count()

fetch dt.metrics  
| filter startsWith(metric.key, “dt.sfm.server.management\_zones”)

fetch dt.entities  
| filter entity.type == “MANAGEMENT\_ZONE”  
| summarize count()

Any help is much appreciated.

Marwan

---

<div class="post-metadata">

**Author:** ![MichalGebacki](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michalgebacki/32/41585_2.png) [@MichalGebacki](https://community.dynatrace.com/u/MichalGebacki)\
**Post date:** [November 24, 2025, 2:29pm UTC](https://community.dynatrace.com/t/migration-from-old-dashboard-to-new-dashboard/51890/2 "2025-11-24T14:29:58Z")

</div>

Hi everyone!

Do you know what might help to solve issue Marwan described above?

Any help is highly appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [November 24, 2025, 9:15pm UTC](https://community.dynatrace.com/t/migration-from-old-dashboard-to-new-dashboard/51890/3 "2025-11-24T21:15:05Z")

</div>

Hi,

This behaviour is expected.  
In the new Dashboards (v3) the concept of dt.entities is no longer available in Grail, so the queries from the old dashboards cannot be migrated directly.

dt.entities does not exist

Tags are not entities → entity.type == “TAG” will never return data

Management Zones are not entities → entity.type == “MANAGEMENT\_ZONE” will never return data

You can only count entities that have a Management Zone assigned, for example:

```markup
fetch dt.entity.service
| filter isNotNull(managementZones)
| expand managementZones
| summarize entities_in_mz = countDistinct(id)

```

 ![t_pawlak_0-1764018675143.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/942b7109e278d5a3559a570c856033980f0f82b2.png)

And you can count entities that contain tags:

```markup
fetch dt.entity.service
| filter isNotNull(tags)
| expand tags
| summarize entities_with_tags = countDistinct(id)

```

 ![t_pawlak_1-1764018705218.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/7/77f6c65b2325c535ab0ed5c9252700e79016baba.png)

These queries count entities using MZs or tags —  
but not the number of MZs or the number of tags themselves, because those are no longer represented as queryable entities in Grail.

**However, the new entity model does expose individual entity types, such as:**

- dt.entity.service
- dt.entity.host
- dt.entity.process\_group
- dt.entity.application

These entities contain a field called managementZones, so you can build a table of “how many entities belong to each management zone”, like this:

```markup
fetch dt.entity.service
| expand managementZones
| summarize by:{managementZones}, count = countDistinct(id)

```

 ![t_pawlak_2-1764018872138.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/79c0d1a237ee6da4a4f34e4914c3408d95247744.png)
