ServiceNow GRC metric setup has three layers. A metric definition holds the shared properties, such as unit, direction, precision and frequency. Each metric attaches that definition to an entity. Manual definitions collect values through metric data tasks; automated definitions read from a table or script. Automated, manual and calculated definitions follow different setup paths, and thresholds come last.
Build the metric definition before the individual metrics
A metric definition is a template-level record. It stores the properties that stay the same wherever a measure is used: the unit, direction, nature, precision, collection frequency and category. Individual metrics collect scores, and those scores roll up into the definition.
Starting here saves repeated work. Suppose revenue has to be collected for several business units. Without a shared definition, you rebuild the same template for each unit. With one definition, you attach each unit as an entity and collection runs against each one.
Choose the collection method first
The collection method decides which form you complete and who supplies the number.
| Definition type | How the data arrives | Who provides it | What you configure first |
|---|---|---|---|
| Automated | Read from a table or script on each run | The platform | Source table, criteria, aggregation |
| Manual | A data owner answers a generated task | A named owner or group | Instructions, response type, approval |
| Calculated | Rolled up from child definitions | The formula and rollup settings | Children and formula |
Manual and automated definitions convert in either direction, once open tasks are closed. Calculated children must share the parent’s frequency.
Configure an automated metric definition
Pick the method type
The Basic method reads one table. You choose the table, filter it with the criteria builder, and select an aggregate and an aggregation field. The Scripted method runs a script, which suits data spread across several tables. Save the form before adding the script, and note that the sn_grc_metric.developer role is needed to add one. The External Source method collects data from an outside application, such as an HR system that holds headcount.
Set the aggregate and the entity match
Basic methods offer Count, Sum, Average, Maximum, Minimum and Count Distinct. Count needs no aggregation field. The table field and the entity field decide which records belong to which entity. Check that the criteria and the table and entity match select the records you expect before you rely on the score. For other setup errors to watch for, see common ServiceNow Integrated Risk Management mistakes and how to avoid them.
Set frequency, first run date and direction
The frequency runs from daily to annual, and the first run date anchors the schedule. Direction tells readers how to read movement: Minimize for measures that should fall, Maximize for measures that should rise, Milestone for progress toward a dated goal. On automated and calculated definitions, thresholds can be set for the other directions.
Keep supporting data lean
Automated definitions can collect supporting data, the detail behind each score. Retention depends on frequency: 30 days for daily and weekly data, 3 months for monthly, and up to 3 years for yearly. For large source tables, keep supporting fields to four or five.
Configure a manual metric definition
Choose the category first. Quantitative definitions show nature, direction, precision and unit fields. Qualitative definitions show a result type instead: Text, HTML or Choice. A Choice result needs a choice table, a choice field to display, and optionally a condition.
Data owner assignment is either Simple, which uses the owner you name, or Advanced, which uses an assignment configuration. Advanced needs the GRC: Approver Configurator application installed. It assigns the data owner based on an assignment configuration, and falls back to the named owner when that configuration doesn’t return any results.
The due date offset sets how many days after the schedule end date a metric data task turns overdue. A monthly definition with an offset of 15 becomes overdue fifteen days after the month closes. Enable Approval required in the same form to add an approver type and approver.
Build a calculated metric definition
Choose the calculation level
At the metric definition level, the calculation uses data across all child definitions or metrics and returns one overall figure. At the entity level, it matches the entities the children share and calculates each one. An aggregation method (None, Sum, Average, Maximum or Minimum) then combines the entity results. The Aggregation method field appears only when Calculation level is set to Entity.
Configure the formula builder
An administrator configures the formula builder before formulas can be written. Open the formula builder configuration, select New, and complete the fields below.
| Field | What to set |
|---|---|
| Formula context | The calculation context the formula serves, for example Calculation level – entity (Risk). |
| Table and condition | The tables the formula may draw on, and the filter that limits their records |
| Display field | The name or ID shown for each operand |
| Identifier | Two lowercase letters tied to the table. The letters fn are not permitted, because fn refers to functions |
Write and edit the formula
Open the calculated definition, select Build formula, and open the formula builder. Type a backslash in the formula text field to start. At the definition level, pick two metric definitions or metrics and an operator between them; at the entity level, pick two metric definitions. Functions include maximum, minimum and average, and operators include addition, subtraction, division and multiplication. Expect the formula to need at least one metric definition or entity operand. Save before you execute.
Editing creates a new version. The save dialog can apply the change to historical data from a chosen period, and records from that period reset to Pending and recalculate.
To audit a result, open a calculated metric data record and select Show formula tree. It lists the formula, the definitions involved and the sub-formulas. An empty page usually means operands are still updating; an error page points to an operand that needs fixing. For other fault patterns, see the troubleshooting guide.
Set thresholds that read clearly on dashboards
Deciding which measures deserve a threshold is a separate question, covered in our guide to choosing which integrated risk measures to track.
Static and dynamic thresholds
A static threshold is a fixed limit. A dynamic threshold is a percentage band, measured against the previous period and read in light of the metric direction. Take an attrition-style metric where any increase is undesirable. Each band then covers a range of percentage change from the previous period, and you choose where the cut-offs sit. Thresholds apply to quantitative metrics. Their colors show on dashboards, list pages and record pages, and a breach can trigger an email or create an issue.
Fill in the threshold form
| Field | What it controls |
|---|---|
| Threshold type | Static or Dynamic |
| Color | Must be unique for each level |
| Valid from and Valid until | The dates from which, and until which, the threshold configuration is valid |
| Active | Switches the band on or off |
| Enable threshold breach monitoring | Triggers actions immediately on a breach |
| Condition and Actions | When the band applies, and whether to send email or create an issue |
Copy thresholds and change colors
To copy a threshold, check it in the metric’s Thresholds related list, choose Copy, edit, and save. A copy starts inactive until you select Active, and duplicate colors trigger a validation error. The copy and the original then change independently.
Amber, red and green are active by default. To enable another color, an administrator or risk manager opens the sn_grc_metric_threshold table, selects the Color column, opens its Choices list, and changes the Inactive value from true to false. Confirm the application scope is GRC: Metrics first.
Collect, review and override metric data
Provide data through a task
A data owner opens My metric data tasks, selects the task, and chooses Move to In Progress. Enter a value or a response, tick the certification box, and save. A value can be entered in any unit of the same unit family as the reporting unit, and it is converted to the reporting unit set on the metric definition. Add evidence under Related documents.
Work across many tasks
The metric data table works like a spreadsheet, with filters for entity, group, dates and approval level. For quantitative metrics it also shows recent values, variance against the previous period, and threshold status.
Approve, reject and override
A reviewer approves or rejects each cell, and a rejection needs a reason. Cells can be handled in bulk. Bulk actions can apply to one metric definition’s cells or to all cells in the table.
Overrides are separate. Administrators with the sn_grc_metric.admin, sn_risk.admin or sn_compliance.admin role can override a task response, and must enter a justification. An administrator can override the metric data after it closes. Both need a justification.
Ad hoc tasks, created off-cycle on manual metrics, do not feed aggregated definition data, entity rollups, threshold ratings or variance. An entity-level calculated definition is the exception.
Frequently asked questions
Can a manual metric definition become automated later?
Yes. Close any open tasks on a manual definition first, then convert it. Automated definitions convert back the same way.
Why does a threshold band not appear on a metric?
Check four things. The metric must be quantitative. The band must be active. The task’s interval date must fall within the valid-from and valid-until range. Each band must have its own color, because a duplicate color stops the threshold from saving.
Why is an ad hoc task missing from the roll-up?
Ad hoc tasks feed no rollups, ratings or variance. Entity-level calculated definitions are the exception.
Why will a formula not execute?
Check that the formula contains at least one metric definition or entity operand, and save it before you execute.