---
title: "AlertCount"
canonical: "https://help.innovyze.com/space/info360/15007967/AlertCount"
format: markdown
---
Returns the total count of alerts that have been triggered by a selected Track for a selected Sensor.

| **<span style="color: #003366">Parameter</span>** | **<span style="color: #003366">Description</span>** |
| --- | --- |
| **Sensor ID*** | The unique ID of the sensor data to be used in the function.<br>This function must be run directly on raw sensor data. An internal function cannot be used (e.g. High(Previous(4))), as this does not pass all the required information. |
| **Track ID*** | Enter the ID of the Track to be used in the function.<br>Track ID's are shown in the "#" column of the Track table.<br>![image](media://f6990df2-a5c0-4ce0-90b1-30fe832b888d) |

*Both the Sensor ID and Track ID are optional strings. Each can be left blank to count alerts from any sensor or any track respectively.

To enter a blank string, use ''

### Example Usage as an Expression:

AlertCount('','') - Outputs the total number of alerts from all Tracks for any sensor during each sampled time step.

AlertCount('J50.Pressure','') - Counts the alerts from any track associated with sensor J50.Pressure at each time step.

AlertCount('','5') - Counts the total alerts from Track # 5 for any sensor during each time step.

### Examples Reference Chart:

The following example shows the Alert Count and [AlertDuration](https://help-innovyze.atlassian.net/wiki/spaces/info360/pages/15007970) for a specific sensor.

The AlertCount() includes all Tracks by leaving the TrackID blank, while AlertDuration() reports specific to Track #2.

The AlertDuration is reporting the cumulative duration over the previous 48 hours at each point.

![image](media://7c561365-59a0-49cd-8e9f-1b902440de3a)


For information on setting up custom equations and syntax, please refer to [Analytical Functions](https://help-innovyze.atlassian.net/wiki/spaces/info360/pages/15007825).