> 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-report-designer/add-report-elements-in-report-designer-cp/create-sub-reports.md).

# 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
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 dynamically by asking a question.

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

```
GET https://docs.pentaho.com/pba-report-designer/add-report-elements-in-report-designer-cp/create-sub-reports.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
