# Single avg value instead full timeseries

**URL:** <https://community.dynatrace.com/t/single-avg-value-instead-full-timeseries/40007>\
**Category:** DQL\
**Tags:** dql\
**Created:** [May 31, 2023, 2:11pm UTC](https://community.dynatrace.com/t/single-avg-value-instead-full-timeseries/40007 "2023-05-31T14:11:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [May 31, 2023, 2:11pm UTC](https://community.dynatrace.com/t/single-avg-value-instead-full-timeseries/40007/1 "2023-05-31T14:11:21Z")

</div>

I’d like to display one single value (the average of all the value of the chart) instead of a timeseries.When I choose “Single Value” display, it seems to display the values of ALL hosts, instead of one average:

 ![stefan_eggersto_2-1685542229153.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/5/b56a0492c2054261d2e1280173e910c4f445d83c.png)

---

<div class="post-metadata">

**Author:** ![educampver](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/educampver/32/29917_2.png) [@educampver](https://community.dynatrace.com/u/educampver)\
**Post date:** [June 1, 2023, 6:27am UTC](https://community.dynatrace.com/t/single-avg-value-instead-full-timeseries/40007/2 "2023-06-01T06:27:59Z")

</div>

Hi Stefan, the timeseries command produces an array of data points. If you need to aggregate these values, you can use one of the available array functions. In this case, it would be the [arrayAvg function](https://www.dynatrace.com/support/help/shortlink/dql-functions#arrayAvg), like so:

```markup
timeseries cpu=avg(dt.host.cpu.usage), by:dt.entity.host
| fields cpu=arrayAvg(cpu), dt.entity.host

```
