Add New Measurement Time Calculation
This article describes how to add a new Measurement Time Calculation interval. This interval defines the :measurement_time variable that can be used in the Dataset SQL statement.
1. Start Creating a New Measurement Time Calculation Command
Access Admin > Reference Objects > Meas. Time Calcs
![Measurement Time Calculation Commands - Google Chrome](https://media.screensteps.com/image_assets/assets/007/393/425/original/f99ef965-c2f1-42e4-bc5b-2f4c6044fbbd.png)
[+New Measurement Time Calculation Command] to open Editor
2. Input New Measurement Time Calculation Command data
![Measurement Time Calculation Commands - Google Chrome](https://media.screensteps.com/image_assets/assets/007/393/427/original/8ea45481-a819-4c58-bffd-ae774fe2b662.png)
- Data Collected Using: Select the SQL Data Source
- SQL Statement: Enter the fetch command
- [Validate]
If Validation is successful, the SQL statement box will turn green. [Save] the Measurement Time Calculation interval.
3. Add Measurement Interval
Open Measurement Interval tab
- [+Add Measurement Interval]
- Select the Measurement Intervals by selecting corresponding checkboxes
- [Add Selected]
4. Check the "Set :measurement_time value" Dropdown in Dataset Editor
The new Measurement Time Calculation interval will appear in the dropdown menu of the Set :measurement_time value field of the Data Collection Trigger of the Dataset is the same as the Measurement Interval assigned to the Measurement Time Calculation command.
For more details about ":measurement_time" variable check the Usage of the ":measurement_time" Bind Variable article.