# Histo of distinct count

**URL:** <https://discuss.elastic.co/t/histo-of-distinct-count/7419>\
**Category:** Elasticsearch\
**Created:** [April 20, 2012, 11:35am UTC](https://discuss.elastic.co/t/histo-of-distinct-count/7419 "2012-04-20T11:35:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![limac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/limac/32/3981_2.png) [@limac](https://discuss.elastic.co/u/limac)\
**Post date:** [April 20, 2012, 11:35am UTC](https://discuss.elastic.co/t/histo-of-distinct-count/7419/1 "2012-04-20T11:35:05Z")

</div>

Hi there,  
I have a serial of data of \<time, value\>, and I am trying to draw a  
histogram to show how many district value in every minute. I know histo  
facet is close to it except it cannot count distinctly. Any other good idea?  
Thanks!

Alan

Sent from my Windows Phone

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 21, 2012, 2:58pm UTC](https://discuss.elastic.co/t/histo-of-distinct-count/7419/2 "2012-04-21T14:58:49Z")

</div>

You can't do distinct on values with histogram.

On Fri, Apr 20, 2012 at 2:35 PM, Yong Wang [cnwangyong@gmail.com](mailto:cnwangyong@gmail.com) wrote:

> Hi there,  
> I have a serial of data of \<time, value\>, and I am trying to draw a  
> histogram to show how many district value in every minute. I know histo  
> facet is close to it except it cannot count distinctly. Any other good idea?  
> Thanks!
> 
> Alan
> 
> Sent from my Windows Phone

---

<div class="post-metadata">

**Author:** ![limac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/limac/32/3981_2.png) [@limac](https://discuss.elastic.co/u/limac)\
**Post date:** [April 21, 2012, 11:18pm UTC](https://discuss.elastic.co/t/histo-of-distinct-count/7419/3 "2012-04-21T23:18:36Z")

</div>

So, any idea to do such search? Many thanks!

## Sent from my Windows Phone

From: Shay Banon  
Sent: 4/21/2012 22:59  
To: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
Subject: Re: Histo of distinct count

You can't do distinct on values with histogram.

On Fri, Apr 20, 2012 at 2:35 PM, Yong Wang [cnwangyong@gmail.com](mailto:cnwangyong@gmail.com) wrote:

> Hi there,  
> I have a serial of data of \<time, value\>, and I am trying to draw a  
> histogram to show how many district value in every minute. I know histo  
> facet is close to it except it cannot count distinctly. Any other good idea?  
> Thanks!
> 
> Alan
> 
> Sent from my Windows Phone

---

<div class="post-metadata">

**Author:** ![limac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/limac/32/3981_2.png) [@limac](https://discuss.elastic.co/u/limac)\
**Post date:** [April 22, 2012, 12:14am UTC](https://discuss.elastic.co/t/histo-of-distinct-count/7419/4 "2012-04-22T00:14:27Z")

</div>

Hi there,  
I found a plugin to do this, any comment?

> **[GitHub - crate/elasticsearch-timefacets-plugin: Elasticsearch Timebased Facets](https://github.com/crate/elasticsearch-timefacets-plugin)**
>
> Elasticsearch Timebased Facets. Contribute to crate/elasticsearch-timefacets-plugin development by creating an account on GitHub.

On Sun, Apr 22, 2012 at 7:18 AM, Yong Wang [cnwangyong@gmail.com](mailto:cnwangyong@gmail.com) wrote:

> So, any idea to do such search? Many thanks!
> 
> ## Sent from my Windows Phone
> 
> From: Shay Banon  
> Sent: 4/21/2012 22:59  
> To: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> Subject: Re: Histo of distinct count
> 
> You can't do distinct on values with histogram.
> 
> On Fri, Apr 20, 2012 at 2:35 PM, Yong Wang [cnwangyong@gmail.com](mailto:cnwangyong@gmail.com) wrote:
> 
> > Hi there,  
> > I have a serial of data of \<time, value\>, and I am trying to draw a  
> > histogram to show how many district value in every minute. I know histo  
> > facet is close to it except it cannot count distinctly. Any other good idea?  
> > Thanks!
> > 
> > Alan
> > 
> > Sent from my Windows Phone

---

<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, 3:31am UTC](https://discuss.elastic.co/t/histo-of-distinct-count/7419/5 "2017-07-06T03:31:26Z")

</div>


