# Creating a Report to show only the time when a circuit is active

**URL:** <https://forum.inductiveautomation.com/t/creating-a-report-to-show-only-the-time-when-a-circuit-is-active/80487>\
**Category:** Ignition\
**Tags:** reporting\
**Created:** [October 14, 2023, 5:58pm UTC](https://forum.inductiveautomation.com/t/creating-a-report-to-show-only-the-time-when-a-circuit-is-active/80487 "2023-10-14T17:58:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Heck](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@Nathan\_Heck](https://forum.inductiveautomation.com/u/Nathan_Heck)\
**Post date:** [October 14, 2023, 5:58pm UTC](https://forum.inductiveautomation.com/t/creating-a-report-to-show-only-the-time-when-a-circuit-is-active/80487/1 "2023-10-14T17:58:50Z")

</div>

Good afternoon,

I am working on a new report using the reporting module, and what i'm trying to accomplish is instead of having it show a set time range, I want to to show the range when a circuit is active. Is that achievable?

Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 14, 2023, 6:06pm UTC](https://forum.inductiveautomation.com/t/creating-a-report-to-show-only-the-time-when-a-circuit-is-active/80487/2 "2023-10-14T18:06:14Z")

</div>

That would be `Duration On`. I had a hard time finding documentation on it, this link explains it a bit, regardless if you use this function or not.

[https://docs.inductiveautomation.com/display/DOC81/system.tag.queryTagHistory](https://docs.inductiveautomation.com/display/DOC81/system.tag.queryTagHistory)

---

<div class="post-metadata">

**Author:** ![Nathan\_Heck](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@Nathan\_Heck](https://forum.inductiveautomation.com/u/Nathan_Heck)\
**Post date:** [October 15, 2023, 10:11pm UTC](https://forum.inductiveautomation.com/t/creating-a-report-to-show-only-the-time-when-a-circuit-is-active/80487/3 "2023-10-15T22:11:52Z")

</div>

Thank you, when I try and enter this into the Data section of the Report Module it doesn't recognize this expression.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 15, 2023, 11:12pm UTC](https://forum.inductiveautomation.com/t/creating-a-report-to-show-only-the-time-when-a-circuit-is-active/80487/4 "2023-10-15T23:12:39Z")

</div>

Use tag history data source,

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/8/a8c70e01f738bcccf95e86f1f8ec9cbaad02cdd1.png)
