> For the complete documentation index, see [llms.txt](https://docs.xviz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xviz.com/performance-management/configuring-the-chart-structure/grouping-swim-lanes.md).

# Grouping / Swim Lanes

To group the nodes in swim lanes, we need to provide the grouping information.

Consider the below example where we have one group and three nodes in it:

<figure><img src="/files/NlTXIFEMwr3PP4br9F4a" alt=""><figcaption><p><em>Image 1: Sample group view inspired by Process Flows</em></p></figcaption></figure>

* We will need additional rows for every group that we create. The last column in the above snapshot is the identifier row for the group
* In addition to the Id, Pid and other entity attributes required for the basic view, we need the following columns for grouping/swim lane view:

<table><thead><tr><th width="158">Data Column</th><th width="183">Mandatory/Optional</th><th>Description</th></tr></thead><tbody><tr><td>Group Id</td><td>Mandatory</td><td>Id of the Group in the group identifier row</td></tr><tr><td>Subtree Id</td><td>Mandatory</td><td>Specifies the ID of the Group in which the node resides</td></tr><tr><td>Group color</td><td>Optional</td><td>Color coding of the Group background</td></tr></tbody></table>

The data structure required for the above group view is as follows:

<figure><img src="/files/TLQJHwLfuLzgNi2rIQIc" alt=""><figcaption><p><em>Image 2: Data required for the view in Image 1</em> </p></figcaption></figure>

{% hint style="success" %}
Manually transforming group information in the required structure can be time-consuming. Instead, you can easily use a few transformation steps in Power Query to create the required data structure.
{% endhint %}

### Resources for Grouping/Swimlane View

These resources will assist you transform your current data structure dynamically to fit the required format for the grouping/swimlane view:

1. [Data Structure for Columnar Group View](/performance-management/configuring-the-chart-structure/grouping-swim-lanes/data-structure-for-columnar-group-view.md) - Inspired by the Process Flow use case
2. [Data Structure for Wide Group Views](/performance-management/configuring-the-chart-structure/grouping-swim-lanes/data-structure-for-wide-group-views.md) - Inspired by the Warehouse Management use case


---

# 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.xviz.com/performance-management/configuring-the-chart-structure/grouping-swim-lanes.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.
