# How to filter out disk names END return only those drives which are over 75% utilized?

**URL:** <https://community.dynatrace.com/t/how-to-filter-out-disk-names-end-return-only-those-drives-which-are-over-75-utilized/44919>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api\
**Created:** [April 1, 2024, 12:56pm UTC](https://community.dynatrace.com/t/how-to-filter-out-disk-names-end-return-only-those-drives-which-are-over-75-utilized/44919 "2024-04-01T12:56:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frogster](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@Frogster](https://community.dynatrace.com/u/Frogster)\
**Post date:** [April 1, 2024, 12:56pm UTC](https://community.dynatrace.com/t/how-to-filter-out-disk-names-end-return-only-those-drives-which-are-over-75-utilized/44919/1 "2024-04-01T12:56:46Z")

</div>

How to filter out disk names END return only those drives which are OVER 75% utilized?

Currently, I have this, and it is working to return all drives which only have drive letters, and non which contain \\

but I’d like to be able to also limit the output based on&nbsp;usedPct to only include those drives which are 75% utilized or above.

This is what I currently have, but just need to add the last bit and not sure how to do so:

```markup
builtin:host.disk.usedPct
:filter(and(or(in("dt.entity.disk",entitySelector("type(disk),not(entityName.contains(~"\\~"))")))))
:splitBy("dt.entity.host","dt.entity.disk")
:max:sort(value(max,descending))

```

I tried adding the limiter to 100 but that only goes up to 80% and since %'s fluctuate, I dont want to include more or less of data and play with it every time, but if I can filter it also by only include those which are 75% or above, than that would certainly solve the issue.

---

<div class="post-metadata">

**Author:** ![Frogster](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@Frogster](https://community.dynatrace.com/u/Frogster)\
**Post date:** [April 1, 2024, 12:57pm UTC](https://community.dynatrace.com/t/how-to-filter-out-disk-names-end-return-only-those-drives-which-are-over-75-utilized/44919/2 "2024-04-01T12:57:42Z")

</div>

AND, not END.

---

<div class="post-metadata">

**Author:** ![Frogster](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@Frogster](https://community.dynatrace.com/u/Frogster)\
**Post date:** [April 1, 2024, 2:08pm UTC](https://community.dynatrace.com/t/how-to-filter-out-disk-names-end-return-only-those-drives-which-are-over-75-utilized/44919/3 "2024-04-01T14:08:48Z")

</div>

Figured it out, but now if I add a second metric with the same, but add a timeshift of -1d, I have no way of limiting the results to the same as MetricA without the “series” filter.

```markup
builtin:host.disk.usedPct
:filter(and(or(in("dt.entity.disk",entitySelector("type(disk),not(entityName.contains(~"\\~"))"))),series(avg,gt,75)))
:splitBy("dt.entity.host","dt.entity.disk")
:max:sort(value(max,descending))

```
