# Alarm active counter?

**URL:** <https://forum.inductiveautomation.com/t/alarm-active-counter/19515>\
**Category:** Ignition\
**Created:** [September 4, 2018, 8:35am UTC](https://forum.inductiveautomation.com/t/alarm-active-counter/19515 "2018-09-04T08:35:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 4, 2018, 8:35am UTC](https://forum.inductiveautomation.com/t/alarm-active-counter/19515/1 "2018-09-04T08:35:27Z")

</div>

I try to create a counter attached to each alarms with the number of active occurences (+1 each times the alarm become active). Reset when the alarm is acknowleged.

Moreover I need to display this counter **associated to each alarm** in the alarm status component…

It’s not possible with Alarm’s associated property and alarm’s script event …  
Any Idea ?

the result required is like the buildIn **Active Duration** displayed in the alarm status component.

---

<div class="post-metadata">

**Author:** ![R.Alamsha](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@R.Alamsha](https://forum.inductiveautomation.com/u/R.Alamsha)\
**Post date:** [September 4, 2018, 1:11pm UTC](https://forum.inductiveautomation.com/t/alarm-active-counter/19515/2 "2018-09-04T13:11:46Z")

</div>

> [@mazeyrat](#):
>
> I try to create a counter attached to each alarms with the number of active occurences (+1 each times the alarm become active). Reset when the alarm is acknowleged.

Not sure if this what you are looking for. But i think, you can tweak and customize it to suit your requirement.

This Alarm counter template can filter any string in the "Template properties/Displaypath" filter and can display the filtered alarms count. This is case insensitive. You can cross check by filtering Alarms in the "Alarm status table/Display Path Filter" and copy/paste the same string into this template's filter.

**Note: "Alarm status table/Display Path Filter" is case sensitive.**

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/478eaa2b1bd1b0bb437124b4ccf318f1bda2c36d.png)

**Github -- AreawiseAlarmsCounter.proj**

> **[GitHub - alamsha/Ignition-AreawiseAlarmsCounter: Ignition SCADA demo project...](https://github.com/alamsha/Ignition-AreawiseAlarmsCounter)**
>
> Ignition SCADA demo project to count areawise alarms - GitHub - alamsha/Ignition-AreawiseAlarmsCounter: Ignition SCADA demo project to count areawise alarms

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 4, 2018, 1:38pm UTC](https://forum.inductiveautomation.com/t/alarm-active-counter/19515/3 "2018-09-04T13:38:16Z")

</div>

Thanks for your example, but I need to display the count for each alarm in the alarm status list…😞

---

<div class="post-metadata">

**Author:** ![R.Alamsha](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@R.Alamsha](https://forum.inductiveautomation.com/u/R.Alamsha)\
**Post date:** [September 4, 2018, 1:57pm UTC](https://forum.inductiveautomation.com/t/alarm-active-counter/19515/4 "2018-09-04T13:57:26Z")

</div>

> [@mazeyrat](#):
>
> but I need to display the count for each alarm in the alarm status list

Do you mean a column displaying the counts for each Alarm, embedded in the Alarm Status Table component?.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 4, 2018, 2:38pm UTC](https://forum.inductiveautomation.com/t/alarm-active-counter/19515/5 "2018-09-04T14:38:52Z")

</div>

Yes it is the requirement.
