# Making a kwh report

**URL:** <https://forum.inductiveautomation.com/t/making-a-kwh-report/87287>\
**Category:** Ignition\
**Created:** [March 13, 2024, 5:35pm UTC](https://forum.inductiveautomation.com/t/making-a-kwh-report/87287 "2024-03-13T17:35:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 13, 2024, 5:48pm UTC](https://forum.inductiveautomation.com/t/making-a-kwh-report/87287/2 "2024-03-13T17:48:59Z")

</div>

Ths may give you a start.

> [@Tag history difference over interval](https://forum.inductiveautomation.com/t/tag-history-difference-over-interval/48366/2):
>
> With the help of @JordanCClark (thanks, didn’t know about zip), I ended up with the below script. It will take a history tag (integer, float, double) and find the difference over hour intervals between a start and end date. Any value over 0 will be counted. You can rollover at any time, although your process may deem it necessary to only rollover if you aren’t running. You can then use this is a bar chart, for example, to show counts per hour over time. If the tag doesn’t exist, it should j…

---

_[View the full topic](https://forum.inductiveautomation.com/t/making-a-kwh-report/87287)._
