# Cumulative Sum regardless of time interval

**URL:** <https://discuss.elastic.co/t/cumulative-sum-regardless-of-time-interval/96677>\
**Category:** Kibana\
**Created:** [August 10, 2017, 9:40pm UTC](https://discuss.elastic.co/t/cumulative-sum-regardless-of-time-interval/96677 "2017-08-10T21:40:16Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![capaneus](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@capaneus](https://discuss.elastic.co/u/capaneus)\
**Post date:** [September 12, 2017, 3:31pm UTC](https://discuss.elastic.co/t/cumulative-sum-regardless-of-time-interval/96677/17 "2017-09-12T15:31:16Z")

</div>

Hi Chris  
I feel it's up to how people are defining cusum. For me it could be a cumulative number based on the whole time series. It equals to sum an auto date histogram of a certain metric from begging of the specified timefield until now and when date range filter is applied, it's just slice a piece of data from timeline instead of re-calculate it based on the date range filter. There might be needs for both cases, I just hope if kibana team could add a variable in cusum function to make both possible. Now, if this is not possible, I'm looking to see if it's possible to build custom function for timelion...

---

_[View the full topic](https://discuss.elastic.co/t/cumulative-sum-regardless-of-time-interval/96677)._
