# Create sub-reports

You can create sub-reports within your current report. This enables you to display data from multiple sources.

Perform the following tasks to create a sub-report:

1. Drag and drop a **Sub-Report** element from the **Palette** to the layout band where you want to display it.
2. A Sub-Report dialog box will ask if you would like to make this an inline or banded element.

   Choose one.

   * Inline Sub-Reports can be placed side-by-side with other elements (even other Sub-Reports).
   * Banded Sub-Reports occupy a variable height, but 100% of the report page width, so they cannot be on the same line with other elements.
3. Double-click the **Sub-Report** element.

   A new report tab will open and capture the window focus.
4. In the new report tab, establish a data source and create a report as your ordinarily would, keeping in mind that this will be included in the parent report. When you are finished, switch back to the main report tab.

You should now have a report with a separate data source embedded within your current report. You can repeat this process for as many sub-reports as you have data sources.


---

# 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-report-designer/9.3-report-designer/add-report-elements-in-report-designer-cp/create-sub-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.
