# Tag history calculation

**URL:** <https://forum.inductiveautomation.com/t/tag-history-calculation/70969>\
**Category:** Ignition\
**Created:** [March 13, 2023, 4:12pm UTC](https://forum.inductiveautomation.com/t/tag-history-calculation/70969 "2023-03-13T16:12:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [March 13, 2023, 4:12pm UTC](https://forum.inductiveautomation.com/t/tag-history-calculation/70969/1 "2023-03-13T16:12:15Z")

</div>

Hello ninjas!

I'm trying to use a time series chart to show a mobile average of a tag over a period of time.

I must be doing something stupid because it is not working...

This setting, in my mind, is supposed to get the last day of data and calculate the average for every minute. But I'm getting a dataset with only one value...

What am I doing wrong?

Thanks.

Settings:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/41658303c2971d7b38a9cc55f93ef794e2f6a046.png)

Result:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/d/1dcf5f0e4a85c9a8554013e69b92db991498138e.png)

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [March 13, 2023, 4:18pm UTC](https://forum.inductiveautomation.com/t/tag-history-calculation/70969/2 "2023-03-13T16:18:12Z")

</div>

Hi @vrautomation

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a06dcb39c76d96e0f4c91ffd06a738eaed11250b.png)  
That one should do the job.

---

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [March 13, 2023, 4:22pm UTC](https://forum.inductiveautomation.com/t/tag-history-calculation/70969/3 "2023-03-13T16:22:25Z")

</div>

Thank you for the answer.

I do not see the "Aggregation Mode" in the config window on the time series chart..

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/7/17a57d086da0c196049c0223d68f198d703ea769.png)

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [March 13, 2023, 4:25pm UTC](https://forum.inductiveautomation.com/t/tag-history-calculation/70969/4 "2023-03-13T16:25:57Z")

</div>

the return format should be on wide and not on calculations

---

<div class="post-metadata">

**Author:** ![vrautomation](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vrautomation/32/11155_2.png) [@vrautomation](https://forum.inductiveautomation.com/u/vrautomation)\
**Post date:** [March 13, 2023, 4:28pm UTC](https://forum.inductiveautomation.com/t/tag-history-calculation/70969/5 "2023-03-13T16:28:11Z")

</div>

Cool!. Thank you again.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [March 13, 2023, 4:36pm UTC](https://forum.inductiveautomation.com/t/tag-history-calculation/70969/6 "2023-03-13T16:36:55Z")

</div>

happy to help. Don't forget to mark as solution is it works. It would be easier to find the solution in the future is needed
