# Missing value with cumulative sum

**URL:** <https://discuss.elastic.co/t/missing-value-with-cumulative-sum/94954>\
**Category:** Kibana\
**Created:** [July 28, 2017, 12:46pm UTC](https://discuss.elastic.co/t/missing-value-with-cumulative-sum/94954 "2017-07-28T12:46:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylfaen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylfaen/32/17653_2.png) [@Sylfaen](https://discuss.elastic.co/u/Sylfaen)\
**Post date:** [July 28, 2017, 12:46pm UTC](https://discuss.elastic.co/t/missing-value-with-cumulative-sum/94954/1 "2017-07-28T12:46:03Z")

</div>

Hi !

I'm trying to split my series with a keyword and show 2 line charts depending on the keyword value. BUT as you can see below, the green line is not starting at the beginning of the chart (where blue line starts!). What I was thinking is that missing values aren't considered but I tried to add { "min\_doc\_count":0, "missing": 0 } on the bucket script but still not working...

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f494b5d84550f6b6d21bb7ed50fead9bf862698e.png)

Is there a way to display the two lines from start to end like the photomontage below ?

 ![teee](https://us1.discourse-cdn.com/elastic/original/3X/2/9/296c2d67b6c8f050983c88d404cf7a5e2af53b27.png)

What I use :

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2ee774d10a327230dcf15a33841309bd1fcb04d7.png)

Thanks !

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 28, 2017, 3:51pm UTC](https://discuss.elastic.co/t/missing-value-with-cumulative-sum/94954/2 "2017-07-28T15:51:14Z")

</div>

hi @Sylfaen

that;s tough, especially the extension at the right-hand part of your graph, where Kibana needs to be smart enough to extend the last known value. Right now, Kibana uses the bucket-values it gets from ES and does no interpolation.

I'd open an enhancement request for this in github: [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new)

---

<div class="post-metadata">

**Author:** ![Sylfaen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylfaen/32/17653_2.png) [@Sylfaen](https://discuss.elastic.co/u/Sylfaen)\
**Post date:** [July 31, 2017, 9:21am UTC](https://discuss.elastic.co/t/missing-value-with-cumulative-sum/94954/3 "2017-07-31T09:21:11Z")

</div>

Hi thomas,

Thanks for your input! I'll open an enhancement request.

---

<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:** [August 28, 2017, 9:21am UTC](https://discuss.elastic.co/t/missing-value-with-cumulative-sum/94954/4 "2017-08-28T09:21:43Z")

</div>

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