Loading
Salesforce now sends email only from verified domains. Read More
Set Up Trade Promotion Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Understanding How KPI Values are Calculated When Other KPIs are Referenced

          Understanding How KPI Values are Calculated When Other KPIs are Referenced

          Understand how KPI is calculated.

          Required Editions

          Available in: Lightning Experience

          Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled

          Here’s the structure of a formula to calculate KPIs.

          (Param1,Param2,...,Paramn) =>
          {
          return (Param1+Param2+...+ Paramn);
          }

          The string consists of three parts:

          • Input parameters—(Param1, Param2, ..., Paramn)
          • Arrow
          • Algorithm—{ return Param1 + Param2 + ... + Paramn; }

          Only the defined input parameters can be accessed for calculation, with one exception: calcHelper, which is a collection of functions, can be accessed even if it isn’t specified as an input parameter.

          Provide one of these options as an input parameter for a formula:

          • Other KPIs of the same granularity
          • Other KPIs of a coarse granularity
          • Available dimensions

          Granularity is the level from where the requested value is taken. The usable levels are defined via the dimensions on the Y-axis, which is a KPI measure, tactic, or product. You can’t access the value at the tactic level if the KPI is tactic-independent.

          The system checks for self-references and terminates the calculation if a self-reference is found. The system doesn’t check for circular references, which means that if KPI A references KPI B, and KPI B references KPI A, the calculation can’t be successful.

           
          Loading
          Salesforce Help | Article