> 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
