# Count records form different fields on kibana

**URL:** <https://discuss.elastic.co/t/count-records-form-different-fields-on-kibana/283833>\
**Category:** Kibana\
**Created:** [September 10, 2021, 12:18am UTC](https://discuss.elastic.co/t/count-records-form-different-fields-on-kibana/283833 "2021-09-10T00:18:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cris/32/101855_2.png) [@cris](https://discuss.elastic.co/u/cris)\
**Post date:** [September 10, 2021, 12:18am UTC](https://discuss.elastic.co/t/count-records-form-different-fields-on-kibana/283833/1 "2021-09-10T00:18:39Z")

</div>

Hi guys! I'm very new on kibana, I need your help I'm trying to do a pie chart with the count of keywords of different fields:  
I have like 7 fields that I post like a Json. Like this:

```auto
{
        "England": {
             "London":{
                        "isEuropean": "true"
                      }
             "Manchester":{
                          "isEuropean":"true"
                          }
                    }
          "Spain": 
                    {
             "Madrid":{
                         "isEuropean":"true"
                      }
             "Barcelona":{
                           "isEuropean":"true"
                          }
                    }
"Usa": 
                    {
             "New York":{
                         "isEuropean":"false"
                      }
             "Chicago":{
                           "isEuropean":"false"
                          }
                    }
    }

```

So I want to count how many cities are European and how many are not.  
I don't know how can I count this field and displayed the percentage. Please help me.  
Regards

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 10, 2021, 1:14am UTC](https://discuss.elastic.co/t/count-records-form-different-fields-on-kibana/283833/2 "2021-09-10T01:14:37Z")

</div>

Welcome to our community! 😃 We aren't all guys though 🙂

Can you try `"*.*.isEuropean": "false"` in a query and see if that works?  
I'm not 100% sure it will, but it's worth a try.

---

<div class="post-metadata">

**Author:** ![cris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cris/32/101855_2.png) [@cris](https://discuss.elastic.co/u/cris)\
**Post date:** [September 10, 2021, 8:55pm UTC](https://discuss.elastic.co/t/count-records-form-different-fields-on-kibana/283833/3 "2021-09-10T20:55:38Z")

</div>

Thank you friend! I tried adding filter field but don't accept me the filter, Where I have to set this value?

---

<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:** [October 8, 2021, 8:55pm UTC](https://discuss.elastic.co/t/count-records-form-different-fields-on-kibana/283833/4 "2021-10-08T20:55:40Z")

</div>

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