# Help with Data Explorer query (filter on disk)

**URL:** <https://community.dynatrace.com/t/help-with-data-explorer-query-filter-on-disk/40418>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, data-explorer\
**Created:** [June 27, 2023, 5:24pm UTC](https://community.dynatrace.com/t/help-with-data-explorer-query-filter-on-disk/40418 "2023-06-27T17:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![chris\_oggeri](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chris\_oggeri](https://community.dynatrace.com/u/chris_oggeri)\
**Post date:** [July 11, 2023, 6:08pm UTC](https://community.dynatrace.com/t/help-with-data-explorer-query-filter-on-disk/40418/10 "2023-07-11T18:08:56Z")

</div>

Hi,

It is weird that the solution provided by&nbsp;[@dannemca](https://community.dynatrace.com/user/18264)&nbsp;is not working for you. I tried on my side and it seems to work as expected.

Anyway, for your last query, maybe something like this could be easier to read/modify?

```python
builtin:host.disk.usedPct:filter(and(or(in("dt.entity.host",entitySelector("type(host),tag(~"DiskMonitor:Global~")"))),or(in("dt.entity.disk",entitySelector("type(disk),entityName.in(~"I:\~",~"Z:\~",~"P:\~",~"K:\~",~"N:\~",~"L:\~",~"F:\~",~"D:\~",~"T:\~",~"J:\~",~"H:\~",~"M:\~",~"G:\~",~"E:\~",~"X:\~",~"C:\~")"))))):splitBy("dt.entity.host","dt.entity.disk"):sort(value(auto,descending)):limit(100)

```

or even

```python
builtin:host.disk.usedPct:filter(and(or(in("dt.entity.host",entitySelector("type(host),tag(~"DiskMonitor:Global~")"))),or(in("dt.entity.disk",entitySelector("type(disk),entityName.contains(~":\~")"))))):splitBy("dt.entity.host","dt.entity.disk"):sort(value(auto,descending)):limit(100)

```

---

_[View the full topic](https://community.dynatrace.com/t/help-with-data-explorer-query-filter-on-disk/40418)._
