# Cumulative sum of count, while keeping track of data prior to the initial date

**URL:** <https://discuss.elastic.co/t/cumulative-sum-of-count-while-keeping-track-of-data-prior-to-the-initial-date/223996>\
**Category:** Kibana\
**Created:** [March 17, 2020, 8:15pm UTC](https://discuss.elastic.co/t/cumulative-sum-of-count-while-keeping-track-of-data-prior-to-the-initial-date/223996 "2020-03-17T20:15:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jruivo](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jruivo](https://discuss.elastic.co/u/jruivo)\
**Post date:** [March 17, 2020, 8:15pm UTC](https://discuss.elastic.co/t/cumulative-sum-of-count-while-keeping-track-of-data-prior-to-the-initial-date/223996/1 "2020-03-17T20:15:17Z")

</div>

Hey everyone!  
I'm trying to create a bar graph visualization with the evolution of new users over a period of time.  
The problem is that when I set an initial date on Kibana, it disregards the total number of existing users before that date, and I want Kibana to include those users. (i.e. each graph bar has the total users + new users).

And this is what I have, doing a Cumulative Sum of Count:

[[Album] Imgur ![](https://us1.discourse-cdn.com/elastic/original/3X/c/b/cbe648ed5eb8f573d78ad467185b0af88d83c552.jpeg "Imgur") ](https://imgur.com/a/osq7nyk)

Here's what I'm trying to achieve:

[[Album] Imgur ![](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8f8cefa08dc81c1896766dc750bc4cd083989cfe.jpeg "Imgur") ](https://imgur.com/a/qMNTF0P)

How can I keep track of the total number of existing users + new ones over any period of time?  
Thank you

---

<div class="post-metadata">

**Author:** ![LizaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lizad/32/51074_2.png) [@LizaD](https://discuss.elastic.co/u/LizaD)\
**Post date:** [March 18, 2020, 9:30pm UTC](https://discuss.elastic.co/t/cumulative-sum-of-count-while-keeping-track-of-data-prior-to-the-initial-date/223996/2 "2020-03-18T21:30:44Z")

</div>

Hi @jruivo,

Welcome to our community!

Let me see if @timroes can help answer this.

Thanks!  
Liza

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [March 19, 2020, 6:55pm UTC](https://discuss.elastic.co/t/cumulative-sum-of-count-while-keeping-track-of-data-prior-to-the-initial-date/223996/3 "2020-03-19T18:55:06Z")

</div>

Hi @jruivo,

welcome to the community.

Unfortunately that's currently not easily possible. I opened [#60672](https://github.com/elastic/kibana/issues/60672) to track this enhancement.

Cheers,  
Tim

---

<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:** [April 16, 2020, 6:55pm UTC](https://discuss.elastic.co/t/cumulative-sum-of-count-while-keeping-track-of-data-prior-to-the-initial-date/223996/4 "2020-04-16T18:55:14Z")

</div>

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