# 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). 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="../working-with-analyzer-fields/format-field-options">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.
