# David Anomaly Detector Error related to timeseries

**URL:** <https://community.dynatrace.com/t/david-anomaly-detector-error-related-to-timeseries/55017>\
**Category:** Alerting\
**Tags:** anomaly-detection\
**Created:** [February 17, 2026, 7:10am UTC](https://community.dynatrace.com/t/david-anomaly-detector-error-related-to-timeseries/55017 "2026-02-17T07:10:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RamkumarTIH](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@RamkumarTIH](https://community.dynatrace.com/u/RamkumarTIH)\
**Post date:** [February 17, 2026, 7:10am UTC](https://community.dynatrace.com/t/david-anomaly-detector-error-related-to-timeseries/55017/1 "2026-02-17T07:10:37Z")

</div>

Hi,

I am trying to implement alerting based on the total average value of a metric returned for all entities.

DQL query in Notebook returned the average value but throwing error when trying to setup Anomaly detection .

How should i configure alerting based on “avg(percentage5xx)” ?

 ![RamkumarTIH_0-1771312055910.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/e/5e206985a45e33ec36bbdea97cc67a704a1a5735.png)

ERROR:

 ![RamkumarTIH_1-1771312146884.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ebf3769a89a1b84788ad6f336dcf9b08a2bb1d1f.png)

---

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [February 17, 2026, 9:21am UTC](https://community.dynatrace.com/t/david-anomaly-detector-error-related-to-timeseries/55017/2 "2026-02-17T09:21:16Z")

</div>

I think it might be because when you use _summarize_ command, the timeseries data get ‘converted’ back to tabular data.

Maybe can try to achieve what you want by **1.** Without using the summarize command or **2.** &nbsp;Add a last line in your DQL that would be using _makeTimeseries_ command.
