# How to present sum of each split bucket

**URL:** <https://discuss.elastic.co/t/how-to-present-sum-of-each-split-bucket/144991>\
**Category:** Kibana\
**Created:** [August 18, 2018, 6:11am UTC](https://discuss.elastic.co/t/how-to-present-sum-of-each-split-bucket/144991 "2018-08-18T06:11:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zero-88](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zero-88/32/34606_2.png) [@zero-88](https://discuss.elastic.co/u/zero-88)\
**Post date:** [August 18, 2018, 6:11am UTC](https://discuss.elastic.co/t/how-to-present-sum-of-each-split-bucket/144991/1 "2018-08-18T06:11:48Z")

</div>

Hello all,  
I have a question for aggregation on Kibana, the context is following as

- Line chart
- Bucket: Date Histogram
- Bucket: Split series on field A
- Bucket: Split chart on field B
- Metric A: Count

It means a list of line charts visualize a count of each field A on each chart that split by field B by a custom interval.  
=\> How to add one more metric to count total of field B on each chart, it mean add one line in chart with name is "total B"?

Thanks

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [August 21, 2018, 9:44pm UTC](https://discuss.elastic.co/t/how-to-present-sum-of-each-split-bucket/144991/2 "2018-08-21T21:44:11Z")

</div>

So you're saying you'd like one line in each chart that's just a simple flat line showing the total count of that chart?

---

<div class="post-metadata">

**Author:** ![zero-88](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zero-88/32/34606_2.png) [@zero-88](https://discuss.elastic.co/u/zero-88)\
**Post date:** [August 22, 2018, 6:37am UTC](https://discuss.elastic.co/t/how-to-present-sum-of-each-split-bucket/144991/3 "2018-08-22T06:37:53Z")

</div>

Yes, it is.  
Thanks Lukas

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [August 22, 2018, 5:36pm UTC](https://discuss.elastic.co/t/how-to-present-sum-of-each-split-bucket/144991/4 "2018-08-22T17:36:29Z")

</div>

Unfortunately I can't really think of a way to do this. The metrics are calculated based on the buckets, which means if you use a date histogram, the total will be calculated only on the given bucket, not across the entire range. I think the closest you can get is to use timelion and to use .static, but I don't think it can be dynamic ☹

If you want, you could submit a feature request for this on GitHub.

---

<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:** [September 19, 2018, 5:36pm UTC](https://discuss.elastic.co/t/how-to-present-sum-of-each-split-bucket/144991/5 "2018-09-19T17:36:35Z")

</div>

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