A calculated metric definition combines child metric data into a GRC score. Create it in Risk Workspace, complete its basic details, choose the calculation level and aggregation settings, then save the record and build its formula. The form determines how the score is calculated, displayed, owned, and classified.
Plan the calculated metric definition before entering fields
Start with a calculation that a risk owner can explain without opening the formula builder. Identify the child automatic or manual metric definitions, the intended reporting period, and the meaning of the resulting score. Adding two compatible counts has a different purpose from dividing a count by a population. Write that distinction into the design before configuring the record.
The creation procedure lists sn_grc_metric.manager, sn_risk.user, and sn_compliance.user as the required roles. Navigate to All > Risk > Risk Workspace > Lists > Metrics > Calculated metric definitions, then select New. Navigation and fields can differ by release. The steps below follow the Brazil release.
Choose the child definitions with the reporting question in mind. A parent calculation can combine automatic and manual metric definitions, but the labels alone do not establish whether their values belong together. Confirm the units and period represented by each input. For surrounding setup decisions, see GRC metrics configuration.
Set the name, calendar, frequency, and score display
Use Name to distinguish this calculation from its inputs. A name such as “Combined overdue assessment count” tells a reviewer more than “Calculated total.” Use Description to explain which child values contribute and how to interpret the result. Active marks the definition as active; review that choice alongside the readiness of its inputs and formula.
- Unit: select the unit in which scores should appear. Common units are supplied by default.
- Calendar: choose from configured calendars. The initial value is Standard Calendar, meaning the Gregorian calendar.
- Precision: set the number of decimal places shown in a score. The initial value is 0.
- Frequency: choose Daily, Weekly, Monthly, Quarterly, Semi-annually, or Annually to define the score rollup interval.
Precision changes how the calculated result is rounded. With zero decimal places, a result of 8.6 appears as 9. With one decimal place, 8.64 appears as 8.6. Decide whether fractional results carry meaning before leaving the default in place. A whole-number display can obscure a small movement in a ratio, while decimal places can distract from a count.
Treat the calendar and frequency as part of the calculation design. Record which period the parent score is intended to represent, then compare that intention with the input periods during validation. A recognizable name does not compensate for a monthly score being interpreted as a quarterly result.
Choose the calculation level before building the formula
Calculation level determines the scope of the computation. Select it before saving the definition and building its formula. At Metric definition level, the calculation uses data across child metric definitions or child metrics. Execute applies the formula and generates the calculated metric definition data.
Entity level supports calculations organized around entities associated with the child definitions. The form describes matching common entities across the inputs. Formula building creates child metrics for distinct entities associated with the operand definitions. Review the actual entity coverage of your chosen inputs so that the intended comparison is represented.
At Entity level, Execute applies the formula and generates metric data. Aggregate then rolls up that metric data to generate calculated metric data. These are separate stages worth checking when an entity result exists but the parent score still needs investigation.
Aggregation method appears when Calculation level is Entity. Its choices are None, Sum, Average, Maximum, and Minimum. Select the method according to the question the parent score should answer. Sum can represent a combined count, while Maximum can highlight the highest contributing value. Those examples are design choices, so confirm that the selected method matches your metric’s meaning.
Document a small expected result before execution: the chosen child values, their entity context, and the expected parent value. That gives the reviewer a concrete comparison. Broader measurement design belongs with ServiceNow assessment metrics; this form needs a clear calculation decision.
Assign ownership, interpretation, and confidentiality
Under Metric Properties, Enterprise Owner Type determines which ownership field appears. Select User to expose Enterprise owner, or User group to expose Enterprise owner group. Choose an accountable person or group who can explain changes to the calculation and resolve questions about its inputs.
Direction describes the desired movement. None leaves the direction unspecified, Minimize expresses a downward goal, and Maximize expresses an upward goal. Milestone supports tracking against a milestone when a direction is not applicable. Thresholds can be set for the other directions, but Milestone is excluded.
Nature offers Leading, Lagging, and Current, with the same meanings the form gives for manual metric definitions. Use Leading for a measure intended to anticipate risk outcomes, Lagging for the impact of past events or actions, and Current for active exposure. Keep that choice consistent with the description: a historical outcome count should not be presented to readers as an early warning without a reason.
Group, Subgroup, and Reporting classification organize the metric, while Key metric identifies its business significance. Agree on these classifications with the team that consumes the score. Consistent grouping makes a calculation easier to place among related measures without changing the formula itself.
The Confidentiality section appears when sn_grc.enable_record_confidentiality is enabled under GRC properties and the record is in Draft state. Confidential marks the record accordingly; Allowed users and Allowed groups identify who can view it. The logged-in user is included in the confidential user list by default. Check the audience before sharing sensitive risk measures.
Save the record and construct a testable formula
Select Save after completing the form. The definition is saved in the Metric definitions list. Subsequent work can include associating an entity type, creating metrics, and adding citations. Keep a record of why the chosen inputs support the business question; GRC policy and audit evidence addresses the related evidence context.
For Risk users, formula creation requires sn_risk.user. Open the definition and select Build formula > Formula builder. Enter a backslash in the formula text field to begin selecting formula components. Formulas use operands, operators, and functions; supported examples include addition, subtraction, multiplication, division, maximum, minimum, and average.
A formula needs at least one metric definition operand or entity operand. Use Copy when retaining the expression for review, Reset to return it to its initial state, and Preview to inspect it without identifiers. Select Save formula before Execute. The formula builder excludes Safari, so use another browser for this step.
For help planning this work, see ServiceNow implementation.
Compare the executed result with the expected result prepared earlier. Check the operand selections and the calculation level before changing arithmetic. If an entity calculation is involved, inspect both the entity values and the aggregation method. A correct expression applied to the wrong input definition can still produce a misleading score.
Control formula revisions and historical recalculation
Editing a calculated metric definition formula requires sn_risk.user. Open the record from Metrics > Calculated metric definitions in Risk Workspace. Select Formula > Formula builder from the navigation panel, select Edit, change the expression, and select Save formula.
In Apply changes and save, Apply to historical data as well lets you extend the change to past data. Choose the starting period in Apply changes from. Records from that period onward are reset to Pending and recalculated with the updated expression. Agree the period with the score owner before saving, particularly when earlier reports used the previous logic.
The saved change becomes a new formula version in the Versions related list. Each saved formula change is stored as a new version and listed in the Versions related list on the calculated metric definition. Add relevant notes in Type your comments here so the reason for changing the calculation remains understandable.
Questions about input gaps and formula transfer
Can a default replace a missing operand value?
Default operand values can be configured in the Calculated Metric Definition Settings table. An active default record, shipped or custom, supplies the value for a missing operand. The rule is set per operator: a One for null setting assigns 1 when the adjacent operator matches, a Zero for null setting assigns 0, and a Skip null setting leaves that operand out of the calculation. Set this policy only after deciding what a substituted value should mean.
Do ad hoc child metric tasks contribute to the score?
Ad hoc child metric data is not included in a calculated metric definition formula at Metric definition level. Scheduled child metric task data is the input that feeds the score, so check the collection route when an expected value does not appear. Scheduled child metric task data feeds the score. Check the input’s collection route when an available value does not appear in a calculated result.
Can an existing spreadsheet formula be imported?
Yes. Formula import requires system admin. The spreadsheet must contain the columns Name, Frequency, Formula, Calculation level, and Domain area. Through Metric definition data source, upload the attachment, select Load All Records, then Run Transform and Transform.
Where can a formula author find guidance inside the builder?
Select Need help? on the formula builder page for guidance on building the expression. Use that assistance while assembling components, then validate the saved calculation against a known input set before relying on its score.