# 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](/files/YuqxuqCtv1gopb05gI1z)
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: 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/creating-analyzer-reports/visualizations-for-analyzer/boxplot-chart/boxplot-chart-example.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.
