# Average unique count

**URL:** <https://discuss.elastic.co/t/average-unique-count/47630>\
**Category:** Kibana\
**Created:** [April 18, 2016, 9:29am UTC](https://discuss.elastic.co/t/average-unique-count/47630 "2016-04-18T09:29:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saba\_soltani](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@saba\_soltani](https://discuss.elastic.co/u/saba_soltani)\
**Post date:** [April 18, 2016, 9:29am UTC](https://discuss.elastic.co/t/average-unique-count/47630/1 "2016-04-18T09:29:48Z")

</div>

Hi,

Is it possible to have the average of unique count of a string field?

For example :  
In the document , there is a filed which contains name of store.  
I want to have the average number of unique store per hour of day over a complete period.  
I know it is possible to have "Date Histogram" with "Hourly" interval but in this situation, I can just have number of unique store instead of average.

P.S : There is a scripted filed which contain " Hour Of Day" .

Regards,

---

<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:** [July 6, 2017, 1:55pm UTC](https://discuss.elastic.co/t/average-unique-count/47630/2 "2017-07-06T13:55:53Z")

</div>


