# Request - add aggregationMode = "FirstValue" for system.tag.queryTagHistory

**URL:** <https://forum.inductiveautomation.com/t/request-add-aggregationmode-firstvalue-for-system-tag-querytaghistory/52089>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 19, 2021, 2:02am UTC](https://forum.inductiveautomation.com/t/request-add-aggregationmode-firstvalue-for-system-tag-querytaghistory/52089 "2021-10-19T02:02:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [October 19, 2021, 2:02am UTC](https://forum.inductiveautomation.com/t/request-add-aggregationmode-firstvalue-for-system-tag-querytaghistory/52089/1 "2021-10-19T02:02:36Z")

</div>

Hi IA.  
I know there is a request/ideas link but lost it. Anyways.

I’m working with `system.tag.queryTagHistory` using interval windows mostly. I wish to bring the first value on a time window but reading the documentation I can not find an aggregation mode to help me with that.

Instead, I have add additional script to get what I want using “LastValue” and doing some time offset and is not convenient.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [October 21, 2021, 7:58am UTC](https://forum.inductiveautomation.com/t/request-add-aggregationmode-firstvalue-for-system-tag-querytaghistory/52089/2 "2021-10-21T07:58:17Z")

</div>

Does anybody has that link for posting ideas and requests?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 21, 2021, 2:17pm UTC](https://forum.inductiveautomation.com/t/request-add-aggregationmode-firstvalue-for-system-tag-querytaghistory/52089/3 "2021-10-21T14:17:10Z")

</div>

> **[Ignition Features and Ideas | Inductive Automation](https://ideas.inductiveautomation.com/ignition-features-and-ideas)**

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [October 22, 2021, 7:19pm UTC](https://forum.inductiveautomation.com/t/request-add-aggregationmode-firstvalue-for-system-tag-querytaghistory/52089/4 "2021-10-22T19:19:22Z")

</div>

Thanks, I found there is already a request for this [add ‘StartVal’ as an aggregationMode to system.tag.queryTagHistory | Voters | Inductive Automation (canny.io)](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/add-startval-as-an-aggregationmode-to-systemtagquerytaghistory)
