# Max Function vs High Count

**URL:** <https://discuss.elastic.co/t/max-function-vs-high-count/316498>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [October 13, 2022, 7:43am UTC](https://discuss.elastic.co/t/max-function-vs-high-count/316498 "2022-10-13T07:43:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [October 13, 2022, 7:43am UTC](https://discuss.elastic.co/t/max-function-vs-high-count/316498/1 "2022-10-13T07:43:27Z")

</div>

Hi Community,

The max function detect anomaly when it will max value for a particular field. For example  
average life of a person can be 60 and if we are applying max function on age and it detect anomaly age can be 90 or 100 or 105 etc.

Similarly high\_count function is a function where it will detect anomaly where no of event is high , but what is event can we go for high\_count for age field.

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [October 20, 2022, 2:20am UTC](https://discuss.elastic.co/t/max-function-vs-high-count/316498/2 "2022-10-20T02:20:21Z")

</div>

the `count` functions count the number of documents in a `bucket_span` that match the `query` of the datafeed.

the `count` functions do not count fields

---

<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:** [November 17, 2022, 2:21am UTC](https://discuss.elastic.co/t/max-function-vs-high-count/316498/3 "2022-11-17T02:21:14Z")

</div>

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