# Kibana - Incorrect Count # with Bucket Aggregation "Terms"

**URL:** <https://discuss.elastic.co/t/kibana-incorrect-count-with-bucket-aggregation-terms/192895>\
**Category:** Kibana\
**Created:** [July 30, 2019, 12:39pm UTC](https://discuss.elastic.co/t/kibana-incorrect-count-with-bucket-aggregation-terms/192895 "2019-07-30T12:39:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [July 30, 2019, 4:00pm UTC](https://discuss.elastic.co/t/kibana-incorrect-count-with-bucket-aggregation-terms/192895/2 "2019-07-30T16:00:23Z")

</div>

Hello,

This sounds related to the terms returned per shard. Might be worth reading through this discuss issue which includes some helpful links on how to account for and resolve issues related to smaller queries and their interplay with shard size:

> [@Confusion Regarding Unstable Bucket-ing in Kibana Visualizations](https://discuss.elastic.co/t/confusion-regarding-unstable-bucket-ing-in-kibana-visualizations/117237):
>
> Hello everyone, I have been currently exploring Kibana visualizations of some test data, specifically horizontal bar charts. I had been attempting to bucket the x-axis by aggregation of terms when I was surprised to notice that, when using count as the ordering metric, manipulating the depth of the descending ordering caused the actual values of the counts results to change! Specifically, I was looking at the top 10 fields in descending order, and their ordering was different depending on whe…

Regards,  
Aaron

---

_[View the full topic](https://discuss.elastic.co/t/kibana-incorrect-count-with-bucket-aggregation-terms/192895)._
