# Yearly reset of cumulative sum with monthly buckets

**URL:** <https://discuss.elastic.co/t/yearly-reset-of-cumulative-sum-with-monthly-buckets/321315>\
**Category:** Kibana\
**Created:** [December 15, 2022, 1:41pm UTC](https://discuss.elastic.co/t/yearly-reset-of-cumulative-sum-with-monthly-buckets/321315 "2022-12-15T13:41:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_s/32/97631_2.png) [@Jonas\_S](https://discuss.elastic.co/u/Jonas_S)\
**Post date:** [December 15, 2022, 1:41pm UTC](https://discuss.elastic.co/t/yearly-reset-of-cumulative-sum-with-monthly-buckets/321315/1 "2022-12-15T13:41:54Z")

</div>

Hello,

i have a table lens with a monthly date histogram and a cumulative sum column.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/7/a76433b5e036e213e1f23fc25d7b5c9c0f042394.png)

Is there a way to "reset" the cumulative sum to 0 at the start of a year? So 1.1.2007 would start with 0 instead of 3867 from the previous year.

Best regards  
Jonas

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [December 26, 2022, 5:23pm UTC](https://discuss.elastic.co/t/yearly-reset-of-cumulative-sum-with-monthly-buckets/321315/2 "2022-12-26T17:23:18Z")

</div>

Afaik this is not possible(?) @Marco_Liberati do you have any inputs please?

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [January 9, 2023, 9:36am UTC](https://discuss.elastic.co/t/yearly-reset-of-cumulative-sum-with-monthly-buckets/321315/3 "2023-01-09T09:36:49Z")

</div>

No, I do not think there's an easy way to achieve that yet.

---

<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:** [February 6, 2023, 9:37am UTC](https://discuss.elastic.co/t/yearly-reset-of-cumulative-sum-with-monthly-buckets/321315/4 "2023-02-06T09:37:11Z")

</div>

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