# Sum Multiple Buckets

**URL:** <https://discuss.elastic.co/t/sum-multiple-buckets/189135>\
**Category:** Elasticsearch\
**Created:** [July 5, 2019, 3:36pm UTC](https://discuss.elastic.co/t/sum-multiple-buckets/189135 "2019-07-05T15:36:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejack](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Alejack](https://discuss.elastic.co/u/Alejack)\
**Post date:** [July 5, 2019, 3:36pm UTC](https://discuss.elastic.co/t/sum-multiple-buckets/189135/1 "2019-07-05T15:36:26Z")

</div>

Hi everyone,  
I've a big db with thousand distincts values of keywords type.  
I need to get the count of these values distinctly, however I must be extremely accurate so I cannot use "cardinality" and my distincts values are too much to group them into buckets and count the number on docs in each bucket.

Any ideas? Thank's for helps!

---

<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 2, 2019, 3:36pm UTC](https://discuss.elastic.co/t/sum-multiple-buckets/189135/2 "2019-08-02T15:36:31Z")

</div>

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