> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/analytics+/working-with-analytics+/2.-data-management/adding-calculated-measures.md).

# Adding calculated measures

You can create and plot visual-level measures with Analytics+. Click the<img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FvfQhMRRTMNOzGDY3QKhr%2Fimage.png?alt=media&amp;token=cb3e6c6a-627a-489f-8fd4-8f9f4c5ab449" alt="" data-size="line"> icon in the measures section to open the formula bar and enter a formula. Use the '#' key to open the suggestion window.

{% hint style="info" %}
You can also create calculated measures using the **Formula** button in the **Data** section of the toolbar.
{% endhint %}

<div><figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FzH6OPY9FIcxrHxeDggZD%2Fimage.png?alt=media&amp;token=c7727ef0-2308-4752-ac2d-e6d51cc92eca" alt=""><figcaption><p>Creating a calculated measure for tables</p></figcaption></figure> <figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FJL3jlPcS1QDFtzZ3DQ2F%2F2024-07-09_15h41_54.png?alt=media&amp;token=4f1d47d0-1704-45a5-9ef6-96fc74250b69" alt=""><figcaption><p>Calculated measure for cards</p></figcaption></figure> <figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FZkhsty9lhMP3rGCK58Om%2F2024-07-09_15h46_37.png?alt=media&amp;token=757e7620-2a94-47cb-a708-5d74f5207376" alt=""><figcaption><p>Calculated measure for charts</p></figcaption></figure></div>

The calculated measure can then be plotted and assigned to a data bucket like regular measures. Click the <img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2F0bsPqb0F6eRQut2Yu8Tr%2Fimage.png?alt=media&amp;token=6fdb0265-b206-4bf8-ab1e-166f1156415d" alt="" data-size="line">icon in the pivot data window to modify the formula.

<div><figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FrmSRM1ViQQNNcEMtSXFc%2Fimage.png?alt=media&amp;token=512dfa87-1af1-44ec-888c-e1db7096eaf9" alt=""><figcaption><p>Plotting calculated measures in charts</p></figcaption></figure> <figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2F7oVoKA9QJOSagncDlpOl%2F2024-07-09_15h54_25.png?alt=media&amp;token=18b4997d-778f-4dd0-b8dc-3209eb272af7" alt=""><figcaption><p>Plotting calculated measures in cards</p></figcaption></figure> <figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FLfTy7lCLZtb49dWarsXE%2F2024-07-09_15h56_38.png?alt=media&amp;token=ba1ebdd7-d95e-41e9-869e-3c43cdfeba7f" alt=""><figcaption><p>Plotting calculated measures in tables</p></figcaption></figure></div>

Click the <img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FEahmLzvGFsMt4h76TWuT%2Fimage.png?alt=media&amp;token=2409f571-0b72-4722-a361-b721a3703f60" alt="" data-size="line">icon in the pivot data window to delete a calculated measure


---

# 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://docs.inforiver.com/analytics+/working-with-analytics+/2.-data-management/adding-calculated-measures.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.
