# Timeseries arithmetic

**URL:** <https://community.dynatrace.com/t/timeseries-arithmetic/54580>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, timeseries\
**Created:** [January 9, 2026, 2:32pm UTC](https://community.dynatrace.com/t/timeseries-arithmetic/54580 "2026-01-09T14:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rudolph\_Sedlin](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Rudolph\_Sedlin](https://community.dynatrace.com/u/Rudolph_Sedlin)\
**Post date:** [January 9, 2026, 2:32pm UTC](https://community.dynatrace.com/t/timeseries-arithmetic/54580/1 "2026-01-09T14:32:15Z")

</div>

I am currently sending percentage-based approval rate metrics to Dynatrace and creating line-graph dashboards using timeseries like these:

timeseries APPROVAL\_RATE=avg(SERVICE\_APPROVAL\_RATE\_OVERALL), interval:1m

That being said, I am unsure how I show the decline rate (1 - Approvals) on those boards, as that requires arithmetic between timeseries presumably. The DQL seems poorly documented, but I would rather not alter my data model to send both approvals and declines.

---

<div class="post-metadata">

**Author:** ![jolinger](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jolinger](https://community.dynatrace.com/u/jolinger)\
**Post date:** [January 9, 2026, 6:23pm UTC](https://community.dynatrace.com/t/timeseries-arithmetic/54580/2 "2026-01-09T18:23:53Z")

</div>

You can use an array operator to operate on every portion of an array:

timeseries APPROVAL\_RATE=avg(SERVICE\_APPROVAL\_RATE\_OVERALL), interval:1m  
| fieldsAdd DECLINE=1-APPROVAL\_RATE[]

 ![jolinger_0-1767982916147.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/54e1f960b5d9eb50568a545d9bee297eb9e4e96c.png)

---

<div class="post-metadata">

**Author:** ![Rudolph\_Sedlin](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Rudolph\_Sedlin](https://community.dynatrace.com/u/Rudolph_Sedlin)\
**Post date:** [January 12, 2026, 1:09pm UTC](https://community.dynatrace.com/t/timeseries-arithmetic/54580/3 "2026-01-12T13:09:45Z")

</div>

Thank you so much, that did the trick! I can even evaluate the approval rate itself now via division of the approved events over the totals using this syntax, which simplifies my metrics model.
