---
schema_version: "1"
id: 1273c124d40cf6c1d8a8d31fa8a4529b57568e97efdcf4e748fd1cd858f56547
title: KPI Configuration Updates
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/concept_update_configuration.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.concept_update_configuration.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f90fce5a2afc1db97b90dc8314b873379ca1112b4ae29bf97062018290800357
description: When you change a KPI set or its KPI definitions, trigger UPDATE_KPI_SET to regenerate the calculation configuration and sync it to the CG Cloud Processing Service.
products:
  - Consumer Goods
release: "264"
---
# KPI Configuration Updates

When you change a KPI set or its KPI definitions, trigger UPDATE\_KPI\_SET to regenerate the calculation configuration and sync it to the CG Cloud Processing Service.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
      <colgroup>
        <col>
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p>Available in: Lightning Experience</p>
            <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions where Consumer Goods
              Cloud is enabled</p>
          </td>

        </tr>
      </tbody>
    </table>

When you add a KPI definition to a KPI set, the system consolidates the configuration settings for individual KPIs and creates a single JSON file for the entire KPI set. This configuration is stored in the CG cloud processing service, the engine that helps the system perform the various calculations (simple and complex).

When a KPI set is changed, the system generates the configuration JSON and sends the JSON to the processing service to transport the details of the KPI set across the deployment stages.

A JSON file contains:

- Settings that control the display, aggregation, and calculation of all KPIs included in the set.
- Order of the KPI definitions in the KPI set.
- KPI subsets selected while associating each KPI definition with the KPI set.
- Values represented along the X and Y axes of the promotion P&L.

Any change in KPI set or KPI definition, such as when you add a new KPI, improve a KPI’s performance, or remove bugs from a KPI, update the configuration by using `UPDATE_KPI_SET`. Triggering the KPI update either creates a calculation configuration or updates the existing configuration with the newly generated JSON in the processing services. The system detects the KPIs that are required for calculation (formula inputs, compound, and compound-dependent KPIs, metrics) from the KPIs in the subset.

When the KPI configuration is updated, the system generates one KPI subset configuration for each subset of the KPI set. The KPIs in the generated subset configuration inherit the same properties as the main KPI set.

The system calculates the summary of a KPI set (1) that includes KPIs by type (2), and then stores the calculated summary JSON in the KPI\_Set.statistics table.

![JSON of KPI summary](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_trade_promo-264-0-0-production-enus/169b0c8b-175d-4639-bf96-610b16824687/consumer_goods_trade_promo/images/kpi_summary.png)

- **[Sample KPI Set JSON](https://help.salesforce.com/s/articleView?id=ind.tpm_concept_sample_kpi_set_json.htm&release=264.0.0&type=5)**  
    When a KPI set is changed, the system generates the configuration JSON and sends the JSON to the processing service to transport the details of the KPI set across the deployment stages.