# Moving avg counts

**URL:** <https://discuss.elastic.co/t/moving-avg-counts/353367>\
**Category:** Elasticsearch\
**Created:** [February 15, 2024, 12:10pm UTC](https://discuss.elastic.co/t/moving-avg-counts/353367 "2024-02-15T12:10:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![2328943\_dc](https://avatars.discourse-cdn.com/v4/letter/2/a9adbd/32.png) [@2328943\_dc](https://discuss.elastic.co/u/2328943_dc)\
**Post date:** [February 15, 2024, 12:10pm UTC](https://discuss.elastic.co/t/moving-avg-counts/353367/1 "2024-02-15T12:10:38Z")

</div>

we have created visualization to fetch counts average count but as attached in screenshot for in place of highlighted field we want previous timeframes average count so,...is it possible to find count lik

 ![avg data ss](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b10e3ae545ee47c5c0dc932cedf0c1ea9cdbb65d.png)  
this?

---

<div class="post-metadata">

**Author:** ![ersalil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ersalil/32/131773_2.png) [@ersalil](https://discuss.elastic.co/u/ersalil)\
**Post date:** [February 15, 2024, 12:13pm UTC](https://discuss.elastic.co/t/moving-avg-counts/353367/2 "2024-02-15T12:13:39Z")

</div>

To get previous data as per previous timeseries in one graph you may try using time shift.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 14, 2024, 12:14pm UTC](https://discuss.elastic.co/t/moving-avg-counts/353367/3 "2024-03-14T12:14:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
