# How to filter a timeseries based on a value?

**URL:** <https://community.dynatrace.com/t/how-to-filter-a-timeseries-based-on-a-value/53876>\
**Category:** DQL\
**Tags:** dql, dashboards, synthetic-monitoring\
**Created:** [October 27, 2025, 3:54pm UTC](https://community.dynatrace.com/t/how-to-filter-a-timeseries-based-on-a-value/53876 "2025-10-27T15:54:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![badgerfifteen](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@badgerfifteen](https://community.dynatrace.com/u/badgerfifteen)\
**Post date:** [October 27, 2025, 3:54pm UTC](https://community.dynatrace.com/t/how-to-filter-a-timeseries-based-on-a-value/53876/1 "2025-10-27T15:54:46Z")

</div>

Hi,

I am in the process of creating a dashboard where it shows the synthetic availability of all our synthetics in our environment.

We have a diverse amount of synthetics which run from 5 mins to 10mins and what I am trying to achieve is, using the Heatmap visual, show the execution status and availability of our synthetics. Here is the current code that I have:

```markup
timeseries interval:5m, {status = avg(dt.synthetic.browser.availability)}, {executions = count( dt.synthetic.browser.executions)}, by: {dt.entity.synthetic_test}
| fieldsAdd synth_name = entityName(dt.entity.synthetic_test)

```

This is what should appear if you map the values to ‘status’

 ![badgerfifteen_0-1761580256797.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5db506adeddb18c7eb999533f7f4bb75e74701dc.png)

Now when you map it to ‘executions’ (i.e. when it actually executes) you get the following:

 ![badgerfifteen_1-1761580352856.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/e/aecc0a29631f9d19ca72c1a380c0ebf81b0f3a90.png)

I would like to have a union where if executions = 1, then capture the availability for that time. Any ideas? Using just status is inaccurate when showing availability.

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 17, 2025, 10:04am UTC](https://community.dynatrace.com/t/how-to-filter-a-timeseries-based-on-a-value/53876/2 "2025-12-17T10:04:06Z")

</div>

Hey&nbsp;[@badgerfifteen](https://community.dynatrace.com/user/67521)&nbsp;,  
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&nbsp;:blush:  
Please let me know what works best for you.
