---
sourceDocument: Brazil Operational Sustainability Management (formerly Environmental, Social, and Governance)
sourceDocumentLink: https://www.servicenow.com/docs/r/environmental-social-governance

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Operational Sustainability Management (formerly Environmental, Social, and Governance)

ft:clusterId :

    - esgv

bundleId :

    - esgv

workflow :

    - Technology


---

# Historical data for metrics

# Historical data generation for metrics {#ariaid-title1}

Release version: Brazil  
Updated September 30, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Historical data generation for metrics

Historical data generation in ServiceNow creates metric definition data, metric data, and metric data tasks for past reporting periods based on a specified historical start date.
This is useful for backfilling metric data prior to the current date to ensure comprehensive reporting and analysis.
When the metric is part of an active, published campaign, corresponding campaign cycles are also created for these past periods.
Show full answer Show less  

## How Historical Data Generation Works

* You enable historical data generation by selecting the **Create historical data** option on a metric and specifying a **Historical start date** that is before today.
* Records are generated for each period from the historical start date up to the most recent completed period, following the metric's frequency (e.g., monthly, weekly).
* Current and future periods are not affected and continue on the regular schedule.
* Historical records are not generated immediately upon saving; they are created the next time metric data is generated either by a scheduled job or by manual execution on the metric definition.
* After historical data is generated, the **Create historical data** option is automatically cleared to prevent duplicate generation.
* Existing historical records for a period are not duplicated---only missing periods are created.

## Types of Records Created

* **Manual metrics**: Create metric data and metric data tasks.
* **Automated metrics that create tasks**: Create metric data and metric data tasks when task creation is enabled or if the metric belongs to a campaign.
* **Automated metrics without tasks**: Create only metric data with calculated values, marked as completed.

Initial states for newly created records vary by metric type, ensuring accurate tracking of task progress and data collection.

## Historical Data for Metrics in Campaigns

* For metrics tied to active, published campaigns, each historical metric data task is linked to the campaign's cycle for the corresponding period.
* If a campaign cycle for a period already exists, the task is added to it; otherwise, a new campaign cycle is created---even for periods before the campaign's first official run date.
* Periods with existing tasks are skipped to avoid duplication, so no new tasks or cycles are created for those periods.

## Handling Historical Data in Closed Campaign Cycles

When historical metric data tasks are added to campaign cycles that are already in Approval or Closed states, the system behavior depends on bulk action settings:

* If bulk submission is enabled (via properties for bulk submission and real-time CMD recalculation), the campaign cycle reopens to Data Collection state, and all metric data tasks in the cycle are synchronized to appropriate states for further processing.
* If bulk submission is disabled, the campaign cycle and metric data tasks retain their current states without reopening.
* These properties can be managed under Operational Sustainability Management administration settings.

## Practical Implications for ServiceNow Customers

* You can backfill metric data for past periods efficiently, ensuring your historical performance data is complete and consistent.
* When working with campaigns, historical data generation maintains campaign cycles accurately and prevents duplication.
* Understanding the effect of bulk submission settings helps manage how historical data impacts closed campaigns, allowing for controlled data updates and approvals.
* Automatic clearing of the historical data generation flag prevents unintended repeated data creation.  
Historical data generation creates metric definition data, metric data, and metric data tasks for past periods. If the metric belongs to an active, published campaign, the system also creates campaign cycles for those
periods.

To generate records for past periods, you select the Create historical data option on a metric and enter a Historical start date. The historical start date must be earlier than
today.

## How historical data generation works {#historical-data-generation-for-metrics__section_how_it_works}

Records are created for every period, at the metric's frequency, from the historical start date up to the most recent completed period. Current and future periods are skipped and continue to be generated on their regular
schedule. Metric definition data is also created for each historical period.

Saving the metric doesn't generate historical records. They're generated the next time metric data is created for the metric, in one of these ways:

* The scheduled job runs when the metric's Next run date is reached.
* You select Execute on the metric definition.  
  Note:  
  Selecting Execute on an individual metric doesn't generate historical records. It creates or updates data for the current period only.

{#historical-data-generation-for-metrics__ul_erf_r2n_5kc}  
For example, if the historical start date for a monthly metric is 1 January and its next scheduled run is in mid-April, historical records are created for January, February, and March only. April is still in progress, so its records are generated on the regular schedule.  
Note:  
After historical records are generated, the Create historical data option is cleared automatically, so that future runs don't generate them again.

The historical records created for each period depend on the metric type:

* Manual metric: Metric data and a metric data task.
* Automated metric that creates tasks: Metric data and a metric data task. An automated metric creates tasks when task creation is enabled on its metric definition or when the metric belongs to a campaign.
* Automated metric that doesn't create tasks: Metric data only, which is completed with the calculated value.

{#historical-data-generation-for-metrics__ul_records_by_type}  
The new historical records start in the following states.{#historical-data-generation-for-metrics__table_ij4_n45_skc__entry__3}

| Record | Manual metric | Automated metric |
|-|-|-|
| Metric data | Pending | Pending, or Completed when no task is created |
| Metric data task | New | In Progress |
| Campaign cycle (campaign metrics only) | Data collection | Data collection |
[Table 1. Initial states of historical records]

{#historical-data-generation-for-metrics__table_ij4_n45_skc}

If historical records already exist for a period, they aren't duplicated. For example, if the metric already has a January task from a previous run, historical records are created only for February and March.

## Historical data for a metric in a campaign {#historical-data-generation-for-metrics__section_dcb_gp5_skc}

Historical data generation creates one metric data task for each past period. If the metric belongs to an active, published campaign, each task is added to the campaign's cycle for the same period.

* When a campaign cycle already exists, the historical metric data task is added to it. For example, if the campaign already has a March cycle, the metric's March task is added to that cycle. A second March cycle isn't created.
* When a campaign cycle doesn't exist for a period, one is created, even if the period is before the campaign's first run date. For example, if the campaign's first run date is in March, then January and February cycles are created for the metric's January and February tasks.

{#historical-data-generation-for-metrics__ul_cycle_cases}

If the metric already has a metric data task for a past period, that period is skipped, so no campaign cycle is created for it. For example, if a metric already has a March task, the historical run skips March for this
metric. No task is created, and no cycle is created or linked.

## Historical data in campaign cycles that are already closed {#historical-data-generation-for-metrics__section_late_addition}

A historical metric data task might be added to a campaign cycle that's already in the Approval or Closed state. In such cases, the outcome depends on whether bulk actions are enabled. To enable bulk actions, both the <kbd class="ph userinput">Enable bulk submission, approval and rejection</kbd> and <kbd class="ph userinput">Enable Real-time CMD Recalculation</kbd> properties must be enabled. To change these properties, navigate to AllOperational Sustainability ManagementAdministrationProperties.  
Note:  
Changing the property doesn't affect campaign cycles that were already processed or historical data that was already created.

When bulk submission is enabled
:   All metric data tasks in a cycle must be in the same state, so the cycle reopens to the Data collection state. Other metric data tasks in the cycle that are in the Awaiting Approval, Closed, or Estimated state move
    to In Progress, and their metric data moves to Pending.

When bulk submission is disabled
:   The cycle keeps its current state. Other metric data tasks in the cycle also keep their current state.

*[\>]: and then


