# Davis AI adding the timeseries value to a single cumulative value

**URL:** <https://community.dynatrace.com/t/davis-ai-adding-the-timeseries-value-to-a-single-cumulative-value/53555>\
**Category:** Alerting\
**Tags:** davis, anomaly-detection\
**Created:** [September 29, 2025, 3:06pm UTC](https://community.dynatrace.com/t/davis-ai-adding-the-timeseries-value-to-a-single-cumulative-value/53555 "2025-09-29T15:06:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARCOSSILVA](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MARCOSSILVA](https://community.dynatrace.com/u/MARCOSSILVA)\
**Post date:** [September 29, 2025, 3:06pm UTC](https://community.dynatrace.com/t/davis-ai-adding-the-timeseries-value-to-a-single-cumulative-value/53555/1 "2025-09-29T15:06:18Z")

</div>

Is it possible to configure a DQL that adds the timeseries value to a single accumulated value so that the alert is triggered when it reaches a specified maximum number?

 ![community.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/93898ccd4aa435ee1de77a06d56bf0161e83d3f9.png)

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [September 30, 2025, 1:16am UTC](https://community.dynatrace.com/t/davis-ai-adding-the-timeseries-value-to-a-single-cumulative-value/53555/2 "2025-09-30T01:16:18Z")

</div>

[@MARCOSSILVA](https://community.dynatrace.com/user/89758)&nbsp;Can you please elaborate a bit more on your requirement?&nbsp; Davis anomaly detector expects a timeseries to trigger a alert, we might need to find a way to convert the accumulated value into a timeseries to trigger a alert . An example would be converting the count of log patten into timeseries

> **[Examples of anomaly detection on Grail](https://docs.dynatrace.com/docs/dynatrace-intelligence/use-cases/anomaly-detection-examples)**
>
> Use the power of Grail and DQL to convert any data into time series for anomaly detection analyzers.

---

<div class="post-metadata">

**Author:** ![MARCOSSILVA](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MARCOSSILVA](https://community.dynatrace.com/u/MARCOSSILVA)\
**Post date:** [October 3, 2025, 1:52pm UTC](https://community.dynatrace.com/t/davis-ai-adding-the-timeseries-value-to-a-single-cumulative-value/53555/3 "2025-10-03T13:52:31Z")

</div>

I need to create an alert for a metric that generates an alert when it reaches x requests during the day.

I tried using classic mode using fold, but it returns the message: Metric selector returns single datapoint only

builtin:service.requestCount.total:filter(and(or(in(“dt.entity.service”,entitySelector(“type(service),entityName(~“ExampleService~”)”))))):fold
