--- title: Define the data source description: Before calculating the health, product adoption, or product usage score, you must specify the source from which data is to be collected. Data can be collected either through key performance metrics and external sources, or can be calculated. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/acct-lifecycle-events/account-lifecycle-define-data-source.html release: australia topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 5 breadcrumb: [Data context engine, Customer success, Configure, Customer Success Management] --- # Define the data source Before calculating the health, product adoption, or product usage score, you must specify the source from which data is to be collected. Data can be collected either through key performance metrics and external sources, or can be calculated. To define the data source, follow these steps: 1. Login as a user with the `sn_acct_lc.customer_success_application_admin` role. 2. Navigate to **All** > **Data Context Engine** > **Data Sources** > **Create New**. 3. Enter the following details:
| Field | Description |
|---|---|
| Name | Enter a name for the data source. |
| Source | Select the source from which the data is to be collected from the list.- **PA indicator**: Select this option to use a PA indicator to collect performance analytics data at regular intervals and create records in the Context Engine Data table. - **External**: Specify the external data source from which the data is to be collected. You must define how this data can be retrieved from the external source or use the [Table API](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/c_TableAPI.md) to save this information in the Context Engine data table. - **Calculated**: Select this option to calculate the metric values dynamically using formulas based on a combination of existing base metrics. For more details, see [Define a calculated metric data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/acct-lifecycle-events/account-lifecycle-define-data-source-calculate.md). - **Table**: Select this data source type to retrieve and analyze data from internal and external tables. To retrieve data from external sources, you must install the Workflow Data Fabric Hub application and create data fabric tables. For more details, see [Define a table data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/acct-lifecycle-events/account-lifecycle-define-data-source-table.md). **Note:** The sequence in which the metrics are calculated is based on the Execution order that defines which metrics are evaluated first. The Execution order is defined as follows: - PA Indicator and External: 0 \(Metrics from these data sources are calculated first\). - Calculated metrics: 1 + Max\(The child or dependent metrics associated with the parent metric are calculated first followed by the parent metric\). |
| Frequency | Select the frequency at which the data should be collected from the list.- Daily - Weekly - Monthly - Quarterly **Note:** If you select PA Indicator as your data source, you must select a frequency equal to or greater than the PA Indicator collection frequency. For example, if the PA Indicator is collecting data once a week, you can't select a frequency that is lower than Weekly here. |
| PA indicator | Select the metric for which the data is being collected. |
| Breakdown | Select the attribute or category by which the health or risk score is to be grouped. This can be account, product, and so on. |
| Breakdown table | Select the source table against which the score is calculated.**Note:** This field is applicable only if the Source type is **Calculated** See [Define a calculated metric data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/acct-lifecycle-events/account-lifecycle-define-data-source-calculate.md) for details. |
| Target table mapping | \(Optional\) If the Source type is **Calculated**, you can optionally specify the Target table, Target field, and Target query field. After data collection, the calculated score is written into the matching records where the context aligns with the Target query field. See [Define a calculated metric data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/acct-lifecycle-events/account-lifecycle-define-data-source-calculate.md) for more details. |
| Unit of measurement | Select the unit of measurement for the PA indicator that can be minutes, hours, days, months, and so on. |
| Aggregate | Select how the aggregate score should be calculated from the list.- Average - Sum - Max - Min - Count \(This is applicable only if the Source type is **Table**\). See [Define a table data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/acct-lifecycle-events/account-lifecycle-define-data-source-table.md) for details. The Aggregate score is useful if you select a Frequency that is different from the collection frequency of the PA indicator. For example, suppose the PA indicator collection frequency is set to Daily, and the Frequency is set to Weekly, and you want to calculate the aggregate score for the week. In this case, you can use the average or sum option to calculate the score. |
| The following fields are applicable only if you select the **Source** as **Table**. | |
| Source table | Select the table from which the source data is to be retrieved. This can be an internal ServiceNow table or an external table. |
| Group by fields | If you select the **Table** type data source, you must specify the fields by which the data should be grouped.**Note:** You can use up to two fields for grouping. |
| Conditions | Specify the conditions or filters that will be used while retrieving the data. For example, you can choose to retrieve records for a specified period of time. |
| Source value | Select the field on which the aggregation is to be performed. |
| Source reference | The source record used to resolve the **Group by** fields. This field is automatically populated if you selected a single reference type field in the **Group by fields** option. You must update the Source reference resolver script and specify the fields that are to be mapped if the **Group by fields** contains: - Two fields \(maximum allowed\) - A non-reference field. - An external field. |