# Calculating points above and below threshold

**URL:** <https://discuss.elastic.co/t/calculating-points-above-and-below-threshold/86978>\
**Category:** Kibana\
**Created:** [May 24, 2017, 12:56pm UTC](https://discuss.elastic.co/t/calculating-points-above-and-below-threshold/86978 "2017-05-24T12:56:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Padmavathy](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Padmavathy](https://discuss.elastic.co/u/Padmavathy)\
**Post date:** [May 24, 2017, 12:56pm UTC](https://discuss.elastic.co/t/calculating-points-above-and-below-threshold/86978/1 "2017-05-24T12:56:14Z")

</div>

I am using Kibana 5.I have set a threshold in line [chart.is](http://chart.is) it possible to identify how many points lie above and below the threshold line

---

<div class="post-metadata">

**Author:** ![sureshboiina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sureshboiina/32/79183_2.png) [@sureshboiina](https://discuss.elastic.co/u/sureshboiina)\
**Post date:** [May 26, 2017, 4:30am UTC](https://discuss.elastic.co/t/calculating-points-above-and-below-threshold/86978/2 "2017-05-26T04:30:42Z")

</div>

If your data is time series data u can use timeline in kibana

this is not exactly same as per ur requirement but it is helpful with some modification

.es(index=metricbeat-_, timefield='@timestamp', metric=count), .es(index=metricbeat-_, timefield='@timestamp', metric=count).if(gt,20,.es(index=metricbeat-\*, timefield='@timestamp', metric=count),null).label('warning').color('#FFCC11')

---

<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:** [June 23, 2017, 4:30am UTC](https://discuss.elastic.co/t/calculating-points-above-and-below-threshold/86978/3 "2017-06-23T04:30:50Z")

</div>

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