# Single value tile with sparkline and trend as in classic metric explorer in new Dashboards

**URL:** <https://community.dynatrace.com/t/single-value-tile-with-sparkline-and-trend-as-in-classic-metric-explorer-in-new-dashboards/43081>\
**Category:** Dashboarding\
**Tags:** grail, latest-dynatrace, dashboards\
**Created:** [December 7, 2023, 3:09pm UTC](https://community.dynatrace.com/t/single-value-tile-with-sparkline-and-trend-as-in-classic-metric-explorer-in-new-dashboards/43081 "2023-12-07T15:09:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [December 7, 2023, 3:09pm UTC](https://community.dynatrace.com/t/single-value-tile-with-sparkline-and-trend-as-in-classic-metric-explorer-in-new-dashboards/43081/1 "2023-12-07T15:09:05Z")

</div>

I have tried simple single value via timeseries cpu=avg(dt.host.cpu.usage) data.

I had learned that output of timeseries is array, so single value is not possible (blank widget without any info, but it shows trend at least, when i select timeframe/interval as input data).

Another try was timeseries cpu=avg(dt.host.cpu.usage)|fields cpuavg=arrayAvg(cpu).

This produces nice single value but doesn’t allow to visualize sparkline, nor trends (as it’s only single number obviously).

I had tried to push array as well via timeseries cpu=avg(dt.host.cpu.usage)|fields cpu,cpuavg=arrayAvg(cpu), but sparkline does not allow to use cpu array as data source (shows None as record field only option).

I know it’s only early access, but any hints how to achieve such a simple task ? (single value with sparkline and trend as in classic metric explorer)

---

<div class="post-metadata">

**Author:** ![Alejandro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alejandro/32/5595_2.png) [@Alejandro](https://community.dynatrace.com/u/Alejandro)\
**Post date:** [August 8, 2024, 10:30am UTC](https://community.dynatrace.com/t/single-value-tile-with-sparkline-and-trend-as-in-classic-metric-explorer-in-new-dashboards/43081/2 "2024-08-08T10:30:46Z")

</div>

I think your approach is almost perfect but, when you use&nbsp;_fields_ you limit the amount of fields returned in the query. You can directly add the extra calculation with _fieldsAdd_.

I believe the following query should fit your needs and let you visualize everything in a single value tile:

timeseries cpu=avg(dt.host.cpu.usage)  
| fieldsAdd cpuAvg=arrayAvg(cpu)
