# Notebook Query on Problems data

**URL:** <https://community.dynatrace.com/t/notebook-query-on-problems-data/41262>\
**Category:** DQL\
**Tags:** dql, notebooks\
**Created:** [August 18, 2023, 6:51am UTC](https://community.dynatrace.com/t/notebook-query-on-problems-data/41262 "2023-08-18T06:51:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhargav\_314](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@Bhargav\_314](https://community.dynatrace.com/u/Bhargav_314)\
**Post date:** [August 18, 2023, 6:51am UTC](https://community.dynatrace.com/t/notebook-query-on-problems-data/41262/1 "2023-08-18T06:51:33Z")

</div>

Hi Team,

I am trying to fetch&nbsp; **Count of problems raised in each week for all the management zones.** Could you please help me.

In output I need Management Zone along with the Count of Problems raised in a week.

Regards,

Bhargav Vuyyuru

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [August 22, 2023, 12:48pm UTC](https://community.dynatrace.com/t/notebook-query-on-problems-data/41262/2 "2023-08-22T12:48:49Z")

</div>

Hi&nbsp;[@Bhargav\_314](https://community.dynatrace.com/user/63764)

Do you know if your management zones are based on tags? If so, you can use the field entity\_tags, which is avialable for davis problems to filter down to the management zone?

If you want to know more on how to filter on entity tags, please have a look here:&nbsp;[Query monitored entities in Grail — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/grail-querying-monitored-entities#entity-tags)

also there are quite some examples available about how to query problems in grail:&nbsp;[Dynatrace Intelligence DQL examples — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/davis-dql-examples)

Best,  
Sini
