# Use calculated measures in Analyzer reports

In Pentaho Analyzer, calculated measures are user-defined measures based on a user's customizations to base measures in the data model. By applying a formula, in this case an MDX statement, to a selected base measure, the user creates a calculated measure to use in their Analyzer report.

As part of inline modeling, you can now save your calculated measure to the data model while creating or editing your report in Analyzer. Previous to Pentaho 6.0, if you wanted to add a particularly useful calculated measure to the model for others to use in their reports, you had to submit a request to IT and wait until it was available. Now you can save the calculated measure to the model from within Analyzer so other users can benefit immediately from your work.

To add calculated measures to the model or to edit calculated measures saved to the data model, you must be assigned the **Manage Data Sources** operation permission in Users and Roles. For more information on setting and maintaining permissions and roles for users, see [Use Pentaho Security](/pba/pentaho-user-console/classic-design/about-pentaho-user-console-perspectives/administration/manage-users-and-roles-in-puc.md).


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pba/pentaho-analyzer-cp/advanced-topics/use-calculated-measures-in-analyzer-reports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
