# Kibana pie chart show unique to non-unique

**URL:** <https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825>\
**Category:** Kibana\
**Created:** [July 5, 2021, 11:42am UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825 "2021-07-05T11:42:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam3546](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam3546/32/79281_2.png) [@sam3546](https://discuss.elastic.co/u/sam3546)\
**Post date:** [July 5, 2021, 11:42am UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825/1 "2021-07-05T11:42:45Z")

</div>

Im doing something wrong, i want a pie chart to show for all the docs in the index the number of unique docs (based on a string) and non-unique(based on the same string)

So if i had

```auto
doc1
field: test

doc2
field: test

doc3
field: hello

```

Pie chart should show Unique 66% and non-unique 33% as a pie chart. I just get 100% when i used unique count on that field?

Can the Advance field be used to achieve th

---

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [July 5, 2021, 11:50am UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825/2 "2021-07-05T11:50:51Z")

</div>

Hi @sam3546 ,  
Can you please share pichart configuration screenshot and discover tab screenshot which shows these values

---

<div class="post-metadata">

**Author:** ![sam3546](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam3546/32/79281_2.png) [@sam3546](https://discuss.elastic.co/u/sam3546)\
**Post date:** [July 5, 2021, 12:01pm UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825/3 "2021-07-05T12:01:27Z")

</div>

![Screenshot 2021-07-05 at 12.59.41](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d3792e7483897134a0c54d3e0d1665c7f465a494.png)  
 ![Screenshot 2021-07-05 at 13.01.17](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f8a3112d98fd291f65cd13972e53516539bd5dc1.png)

That's my discover and pie chart, just shows 100% instead of 66% and 33%?

---

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [July 5, 2021, 12:04pm UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825/4 "2021-07-05T12:04:18Z")

</div>

Please filter out data for last 1 year and check cause total count displayed as 2 only

---

<div class="post-metadata">

**Author:** ![sam3546](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam3546/32/79281_2.png) [@sam3546](https://discuss.elastic.co/u/sam3546)\
**Post date:** [July 5, 2021, 12:05pm UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825/5 "2021-07-05T12:05:45Z")

</div>

There is no date filter on this index, the docs in the index have no date attached to them so the date filter in the pie chart is off, it showing 2 as 100% is the issue im trying to solve?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [July 6, 2021, 2:33pm UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825/6 "2021-07-06T14:33:41Z")

</div>

You can't use a pie chart to show this. I think your only option is to use Vega.

---

<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:** [August 3, 2021, 2:34pm UTC](https://discuss.elastic.co/t/kibana-pie-chart-show-unique-to-non-unique/277825/7 "2021-08-03T14:34:19Z")

</div>

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