# JSON input count

**URL:** https://discuss.elastic.co/t/json-input-count/152236
**Category:** Kibana
**Created:** [October 12, 2018, 12:11pm UTC](https://discuss.elastic.co/t/json-input-count/152236 "2018-10-12T12:11:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Pierre2](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierre2](https://discuss.elastic.co/u/Pierre2)
#### Post date: [October 12, 2018, 12:11pm UTC](https://discuss.elastic.co/t/json-input-count/152236/1 "2018-10-12T12:11:01Z")

</div>

Hello !

I want to use the JSON input for the metric visualisation. I want to do the calculation below :

(Count all document where the field "echec" is equal to true ) / (count all document)

How can I do that ?

---

<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: [November 9, 2018, 12:11pm UTC](https://discuss.elastic.co/t/json-input-count/152236/2 "2018-11-09T12:11:02Z")

</div>

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