# I got diffirent result with same filter between unique\_count and list-group-terms in kibana

**URL:** <https://discuss.elastic.co/t/i-got-diffirent-result-with-same-filter-between-unique-count-and-list-group-terms-in-kibana/327721>\
**Category:** Kibana\
**Created:** [March 15, 2023, 6:23am UTC](https://discuss.elastic.co/t/i-got-diffirent-result-with-same-filter-between-unique-count-and-list-group-terms-in-kibana/327721 "2023-03-15T06:23:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiteny](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hiteny](https://discuss.elastic.co/u/hiteny)\
**Post date:** [March 15, 2023, 6:23am UTC](https://discuss.elastic.co/t/i-got-diffirent-result-with-same-filter-between-unique-count-and-list-group-terms-in-kibana/327721/1 "2023-03-15T06:23:55Z")

</div>

![result picture](https://us1.discourse-cdn.com/elastic/original/3X/7/b/7bf09a06655614be434652eac470a6cb7816d6a7.png)

In the black rectangle of the picture,I have the TERMS result:461,  
But,the CARDINALITY result is 460!  
They both have the same filter,I don't know what makes these result.

---

<div class="post-metadata">

**Author:** ![hiteny](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hiteny](https://discuss.elastic.co/u/hiteny)\
**Post date:** [March 28, 2023, 6:57am UTC](https://discuss.elastic.co/t/i-got-diffirent-result-with-same-filter-between-unique-count-and-list-group-terms-in-kibana/327721/2 "2023-03-28T06:57:42Z")

</div>

? 😀 😀 😀

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [March 29, 2023, 2:29pm UTC](https://discuss.elastic.co/t/i-got-diffirent-result-with-same-filter-between-unique-count-and-list-group-terms-in-kibana/327721/3 "2023-03-29T14:29:57Z")

</div>

Hi,

In kibana, most visualization have `inspection` link to get the raw elasticsearch queries and their results. Could you check them?

Both [Cardinality aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html#_counts_are_approximate) and[Terms aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-shard-min-doc-count) are approximate. The algorithms are different and that could be the reason of difference.

I don't understand Chineze and the screenshot make no sense for me, sorry. Please explain it in english or you may ask in [Elastic In Your Native Tongue - Discuss the Elastic Stack](https://discuss.elastic.co/c/in-your-native-tongue/11).

Thanks.

---

<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 26, 2023, 2:30pm UTC](https://discuss.elastic.co/t/i-got-diffirent-result-with-same-filter-between-unique-count-and-list-group-terms-in-kibana/327721/4 "2023-04-26T14:30:51Z")

</div>

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