> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/features/metrics.md).

# Computed metrics

Metrics that compute themselves from other metrics: where to create them, how to read them, and where their formula lives

A computed metric is a metric instance nobody fills in. Its value comes from a formula over other metrics, the way a spreadsheet cell computes from other cells: a training coverage from the employees trained and the headcount, a phishing click rate from the clicks and the people tested, a risk level from a threshold on any of them.

You start from the metrics you already track. Pick them, write the formula, name the result: the application creates the metric and the definition behind it, computes its whole history from the existing samples, and keeps it up to date on its schedule.

## Where to start

There are three ways in, all opening the same **New computed metric** window. See [Create a computed metric](/ciso-assistant/features/metrics/creating.md).

| From                             | Do this                                              | The window opens with                              |
| -------------------------------- | ---------------------------------------------------- | -------------------------------------------------- |
| **Metrology > Metric instances** | Click the calculator button next to the **+** button | Nothing picked yet                                 |
| A selection in that list         | Tick the metrics, then **Compute from selection**    | The selected metrics, in the order you ticked them |
| A metric's page                  | **Use in a formula**                                 | That metric, already in the formula                |

<figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-9aab0dff9520a1087038b446ac18b7e53d356dff%2Fmetrics-instances-list.png?alt=media" alt="The metric instances list with the New computed metric button, a calculator, next to the add button"><figcaption><p>The calculator button opens the New computed metric window</p></figcaption></figure>

## Reading a computed metric

A computed metric's page looks like any other metric's, with a few differences.

<figure><img src="https://629777851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCqFeU3oPCgDWkkR386NK%2Fuploads%2Fgit-blob-35d45f3eb8528ff7c5dc5a43b876feb2b8dcd831%2Fmetrics-instance-page.png?alt=media" alt="A computed metric&#x27;s page: 1 current value, 2 timeline, 3 Use in a formula, 4 Edit formula, 5 Refresh now"><figcaption><p>A computed metric: 1 current value, 2 timeline, 3 Use in a formula, 4 Edit formula, 5 Refresh now</p></figcaption></figure>

1. **Current Value**: the latest result, with the note "Computed from the domain's data on the metric's schedule." When the last computation failed, its error shows here as **Last computation error**.
2. **Timeline**: one point per period, from the first period its inputs have data for.
3. **Use in a formula**: starts a new computed metric that reads this one. Only numbers can be read by a formula, so this button does not show on a metric whose result is a level.
4. **Edit formula**: opens the formula in a drawer beside the page. See [Edit a formula](/ciso-assistant/features/metrics/editing.md).
5. **Refresh now**: recomputes the metric's whole series right away instead of waiting for its schedule. The button spins while the worker computes, then the value, the chart and the samples update in place.

A computed metric has no button to add a sample: its samples come from its formula only. They are not typed in, imported or written by a workflow.

## Where the formula lives

Every metric instance has a [metric definition](/ciso-assistant/concepts/catalog/metrics.md#metric-definitions), and a computed metric's formula belongs to its definition. The New computed metric window creates that definition for the metric, or reuses an identical one when it already exists, so the same indicator computed in several domains shares one definition.

Editing the formula never changes another metric: if other metrics share the definition, the one you edit gets a copy of its own when you save. See [Edit a formula](/ciso-assistant/features/metrics/editing.md).

## In this section

* [Create a computed metric](/ciso-assistant/features/metrics/creating.md): the New computed metric window, step by step
* [Edit a formula](/ciso-assistant/features/metrics/editing.md): the drawer, the before/after chart, shared definitions
* [Formula reference](/ciso-assistant/features/metrics/formulas.md): the language, periods, missing values, levels
* [Troubleshooting](/ciso-assistant/features/metrics/troubleshooting.md): messages and what to do about them

New to metrics? Read the [Metrics concept page](/ciso-assistant/concepts/catalog/metrics.md) first, or follow [Creating your first computed metric](/ciso-assistant/guides/getting-started/first-computed-metric.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://intuitem.gitbook.io/ciso-assistant/features/metrics.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
