# Get value from last arrived data and compare it with 0

**URL:** https://discuss.elastic.co/t/get-value-from-last-arrived-data-and-compare-it-with-0/2458
**Category:** Elasticsearch
**Created:** [June 11, 2015, 12:40pm UTC](https://discuss.elastic.co/t/get-value-from-last-arrived-data-and-compare-it-with-0/2458 "2015-06-11T12:40:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Smasell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smasell/32/43483_2.png) [@Smasell](https://discuss.elastic.co/u/Smasell)
#### Post date: [June 11, 2015, 12:40pm UTC](https://discuss.elastic.co/t/get-value-from-last-arrived-data-and-compare-it-with-0/2458/1 "2015-06-11T12:40:05Z")

</div>

Hi guys I'm newby in Elasticserch!!!  
I'm getting my data ones per day. And i need to have access to last of it, get value from one of its pole named "Count" and compare it with 0.  
Any help highly appreciated!!!  
THX.

---

<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: [July 6, 2017, 12:08am UTC](https://discuss.elastic.co/t/get-value-from-last-arrived-data-and-compare-it-with-0/2458/2 "2017-07-06T00:08:12Z")

</div>


