# Tag History - Range Aggregation Mode Function

**URL:** <https://forum.inductiveautomation.com/t/tag-history-range-aggregation-mode-function/14047>\
**Category:** Ignition\
**Created:** [April 13, 2017, 7:08pm UTC](https://forum.inductiveautomation.com/t/tag-history-range-aggregation-mode-function/14047 "2017-04-13T19:08:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AIO](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/aio/32/87549_2.png) [@AIO](https://forum.inductiveautomation.com/u/AIO)\
**Post date:** [April 13, 2017, 7:08pm UTC](https://forum.inductiveautomation.com/t/tag-history-range-aggregation-mode-function/14047/1 "2017-04-13T19:08:51Z")

</div>

Hey folks,

My understanding of the ‘range’ aggregation mode is that it will return the range between the greatest and smallest value in a given time range.

However, I have several tags that are frequently static and the range will report the static value rather than a 0 (no change). Is this how range is intended to work? Is there a work around to report a 0 on no change?

(The conditions under which I am experiencing this is with realtime data from the previous minute in a power table, fixed sampled size of 1 at a 10 second polling rate. Tag has been static for 5+ minutes)

Many thanks!

---

<div class="post-metadata">

**Author:** ![matt.eaton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matt.eaton/32/72046_2.png) [@matt.eaton](https://forum.inductiveautomation.com/u/matt.eaton)\
**Post date:** [April 14, 2017, 8:54pm UTC](https://forum.inductiveautomation.com/t/tag-history-range-aggregation-mode-function/14047/2 "2017-04-14T20:54:03Z")

</div>

I wonder if you have enough historical points in the sampling period. What are the history settings on the tag?

---

<div class="post-metadata">

**Author:** ![AIO](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/aio/32/87549_2.png) [@AIO](https://forum.inductiveautomation.com/u/AIO)\
**Post date:** [April 18, 2017, 8:17pm UTC](https://forum.inductiveautomation.com/t/tag-history-range-aggregation-mode-function/14047/3 "2017-04-18T20:17:39Z")

</div>

Hey Matt,

The tag is running at the Default Historical with a historical deadband of 1.0, historical deadband is absolute, and the value is analog.

With the deadband being set to 1, if there isn’t any change then there is no value being written, resulting in not enough samples?

Thanks for the pointer, I hadn’t considered that.
