> 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/creating-analyzer-reports/visualizations-for-analyzer/boxplot-chart/boxplot-chart-example.md).

# Boxplot chart example

The Boxplot chart example shown in this article was created using the following steps:

1. Choose **File** > **New** > **Analysis Report**.

   The **Select Data Source** dialog box opens.
2. Select **SteelWheelsSales** and click **OK**.

   The new report displays.
3. Select **Boxplot** in the chart list.
4. Add the **Territory** market to the **Category** layout and add the **Years** time to the **Series** layout.
5. In the **Available fields** list, right-click any field in **Measures** and choose **Create Calculated Measure**.
6. Enter **Median** as the **Display Name** and calculate the median of the set by entering the following MDX query in the **Create Calculated Measure**formula panel and clicking **OK**: `Median(Descendants([Product].CurrentMember,[Product].[Line]), [Measures].[Quantity])`

   ![Create Calculated Measure dialog box](https://591371677-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFgwF7oC7Y6b7XWdahykf%2Fuploads%2Fgit-blob-2347a651057ef3437a98b428bd107ca02d28a1f9%2FPAZ%20Create%20Calculated%20Measure%20dialog%20box.png?alt=media)
7. Create a **Lower Quartile** calculated measure set by entering the following MDX query in the **Create Calculated Measure** formula panel and clicking **OK**: `FirstQ(Descendants([Product].CurrentMember,[Product].[Line]), [Measures].[Quantity])`
8. Create an **Upper Quartile** calculated measure set by entering the following MDX query in the **Create Calculated Measure** formula panel and clicking OK: `ThirdQ(Descendants([Product].CurrentMember,[Product].[Line]), [Measures].[Quantity])`
9. Create a **Minimum** calculated measure set by entering the following MDX query in the **Create Calculated Measure** formula panel and clicking OK: `Min(Descendants([Product].CurrentMember,[Product].[Line]), [Measures].[Quantity])`
10. Create a **Maximum** calculated measure set by entering the following MDX query in the **Create Calculated Measure** formula panel and clicking OK: `Max(Descendants([Product].CurrentMember,[Product].[Line]), [Measures].[Quantity])`
11. Right-click each of the five measures you have created and choose **Add to Report**.

Your Boxplot chart will display as shown in this article.


---

# 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/creating-analyzer-reports/visualizations-for-analyzer/boxplot-chart/boxplot-chart-example.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.
