# Get the good count in the char pie

**URL:** <https://discuss.elastic.co/t/get-the-good-count-in-the-char-pie/114734>\
**Category:** Kibana\
**Created:** [January 9, 2018, 4:20pm UTC](https://discuss.elastic.co/t/get-the-good-count-in-the-char-pie/114734 "2018-01-09T16:20:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://discuss.elastic.co/u/radi)\
**Post date:** [January 9, 2018, 4:20pm UTC](https://discuss.elastic.co/t/get-the-good-count-in-the-char-pie/114734/1 "2018-01-09T16:20:35Z")

</div>

Hello, i want get the count of value "Ok" and "NO" in fields checkmembers  
this is my data :

"\_index": "index",  
"\_type": "members",  
"\_id": "252410",  
"\_score": 1,  
"fields": {  
"checkmembers": [  
"ok",  
"ok",  
"No"  
]  
}

This is what i use in visulalize , i used char pie :  
Slice Size  
Aggregation count

Split Slices  
Aggregation  
Field checkmembers  
Order By metric: count

The résult count 1 ok and 1 No

it's not the result i need !  
"checkmembers": [  
"ok",  
"ok",  
"No"  
]  
the result i need it's 2 ok and 1 No

There is solution to get this result?

Thank's

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [January 9, 2018, 10:14pm UTC](https://discuss.elastic.co/t/get-the-good-count-in-the-char-pie/114734/2 "2018-01-09T22:14:44Z")

</div>

hi @radi,

The aggregations in Kibana don't work on nested objects, in this case checkmembers. cf. [https://www.elastic.co/guide/en/kibana/current/nested-objects.html](https://www.elastic.co/guide/en/kibana/current/nested-objects.html). This is an outstanding feature request [https://github.com/elastic/kibana/issues/1084](https://github.com/elastic/kibana/issues/1084).

---

<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:** [February 6, 2018, 10:15pm UTC](https://discuss.elastic.co/t/get-the-good-count-in-the-char-pie/114734/3 "2018-02-06T22:15:11Z")

</div>

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