---
title: "Compare"
canonical: "https://help.innovyze.com/space/info360/15007953/Compare"
format: markdown
---
Compare data to N period ago. If Interval is blank, the period is the number of the current interval. If Sensor ID is blank, current sensor is assumed.

| **<span style="color: #003366">Parameter</span>** | **<span style="color: #003366">Description</span>** |
| --- | --- |
| **Period** | Number of data intervals considered in the function |
| **Interval** | Defines the time series data fed into the function. This can be a sensor ID or another function. |
| **Sensor ID** |  |

### Example Usage as an Expression:

Compare(24,’hour’,’T5000.Tank Level’) - Outputs the data from sensor T5000.Tank Level that occurred 24 hours in the past.

### Examples Reference Chart:

The following simple example shows Compare with and without the Interval and Sensor ID specified. On a Reference Chart, the current sensor and Interval are assumed.

![image](media://1f372bbb-5c92-40c4-ae30-1288750d399d)


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