Formula building in a calculated metric definition

  • Release version: Zurich
  • Updated July 31, 2025
  • 1 minute to read
  • When building a formula in a calculated metric definition, you can determine the granularity of results needed.

    A formula consists of operands, operators, and functions. For example, if you want to calculate the total employee count from two metric definitions, for example, the number of male employees and of female employees, the selected metric definitions are the operands and the operator is the symbol or function that performs a specific operation on the operands to obtain a result. Examples of operators include addition (+), subtraction (-), multiplication (*), and division (/).

    You can set default values for operands in the Calculated Metric Definition Settings [sn_grc_metric_definition_setting] table so metric calculations continue smoothly even when data is missing or undefined. When a formula encounters an empty operand, the system automatically applies the configured default value from this table. You can activate the shipped default record or create custom entries with preferred values for specific operands. This setup enhances the reliability and flexibility of metric logic, reduces manual intervention, and supports consistent results across varying data conditions.

    The calculation level, either Metric definition or Entity, determines the granularity of results, and is set in the Calculation level field.
    • Metric definition: Use this level to produces a single aggregated result from the data across all child metric definitions or child metrics. After building your formula, selecting Execute applies the formula and the calculated metric definition data is generated. For more information, see Configure the formula builder.

      The following image shows how calculation occurs at the metric definition level. Calculation at the metric definition level.

    • Entity: Use this level to generate separate results for each distinct entity associated with the metric definitions used as formula operands. After building and saving your formula, child metrics are automatically created for each entity.

      Selecting Execute applies the formula and the metric data is generated. When you select Aggregate, the metric data is aggregated and the calculated metric data is generated.

      The following image shows how calculation occurs at the entity level.Calculation at the entity level.