> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pba/10.2-analytics/pentaho-analyzer-cp/working-with-analyzer-measures/view-or-update-inline-calculated-measures.md).

# View or update inline calculated measures

These instructions are for calculated measures created within Analyzer using [inline modeling](https://docs.pentaho.com/pba/10.2-analytics/pentaho-analyzer-cp/advanced-topics/use-calculated-measures-in-analyzer-reports.md). Note that inline calculated measures display with the function symbol ('fx') in the **Available Fields** list.

1. In the **Available Fields** list on the left, click the name of the calculated measure you want to edit, and then click the down arrow to the right of the measure name.

   A shortcut menu appears.

   ![Measures shortcut menu](https://591371677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFgwF7oC7Y6b7XWdahykf%2Fuploads%2Fgit-blob-5531bd0330fd7c91b6c0012cd18a3e15d5a79efc%2FAnalyzer_CalcMeasureFX.png?alt=media)
2. Click **Properties**.

   The Properties dialog box appears for that calculated measure.

   ![Editing a calculated measure](https://591371677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFgwF7oC7Y6b7XWdahykf%2Fuploads%2Fgit-blob-534094cce472abffec125a42531268256ace4ee5%2FAnalyzer_EditCalcMeasurePropDB.png?alt=media)
3. You can view and/or edit the following fields.

   **Note:** Some of the fields only display for users who are assigned the **Manage Data Sources** permission.

| Field                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Name**                                   | The name of the measure as it displays in the model.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Format**                                 | <p>Choose how this measure should be formatted, such as currency, general number, or percentage. Use the drop-down arrow to select a format from a system-defined list, or type in the field to enter a custom format.</p><p><strong>Note:</strong> The <strong>Format</strong> field only displays when the value for the field is a number or a date.</p><p>If you do not specify a format, the default value of the first base measure is used as the format. See <a href="https://docs.pentaho.com/pba/10.2-analytics/pentaho-analyzer-cp/working-with-analyzer-fields/format-field-options.md">Format Field Options</a> for more information on selecting the appropriate format for your report.</p> |
| **Decimal Places**                         | (Optional) Specify the number of decimal places for the results.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Type**                                   | The type of field, measure, such as calculated measure. This field is always read-only.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **MDX**                                    | The formula for the measure as an MDX statement. This field is always read-only.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Formula**                                | In the right panel, enter the formula for your calculated measure. You can write the MDX statement, or you can use the list on the left to drag measures into the right panel. You can also use the symbol buttons below to help create your statement, or just use your keyboard to write the expression.                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Create subtotals using measure formula** | Select this check box to use this calculated measure when adding up subtotals in your report.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

4\. When finished editing, click \*\*OK\*\* to save your changes to the calculated measure to the data source, or \*\*Cancel\*\* to close the dialog box without saving your changes.


---

# 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.pentaho.com/pba/10.2-analytics/pentaho-analyzer-cp/working-with-analyzer-measures/view-or-update-inline-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.
