---
title: How to Create “Group By” Data Settings
description: "*This article shows how to create Data Settings that allow end users to group [Data Object](https://learn.assette.com/docs/data-objects-layer/)—and by extension a [Smart Shell](https://learn.assette.com/docs/smart-shells-overview/). This article also assumes that the user already has an understanding of Data Blocks, Data Objects, Smart Shells, and…"
url: "https://learn.assette.com/docs/how-to-create-group-by-data-settings/"
updated: "2025-04-07"
category: Developers / Developer Tools / Data Object Editor / Design View / Groupings Tab
---

# How to Create “Group By” Data Settings

*This article shows how to create Data Settings that allow end users to group [Data Object](https://learn.assette.com/docs/data-objects-layer/)—and by extension a [Smart Shell](https://learn.assette.com/docs/smart-shells-overview/). This article also assumes that the user already has an understanding of Data Blocks, Data Objects, Smart Shells, and Smart Pages. This article further assumes that the user has the Data Object Editor and/or Data Object Admin role assigned to their account.*

For this example, we will be using a holdings-based data set and grouping by the Asset Class Name (e.g., Equity, Cash, etc.) and then adding options such that the user can choose to sort by any of the available columns. When complete, the Data Settings shown to the end user in the Fabricate & Edit Panel in [Assette PowerPoint Editor](https://learn.assette.com/docs/installing-assette-editor/) will be allow the user to group and sort the rows as shown below.

![How to Create "Group By" Data Settings 1](https://learn.assette.com/wp-content/uploads/2024/10/image-90-1024x415.png)

To group rows within the Data Object, we need to start by opening the [Grouping Tab](https://learn.assette.com/docs/grouping-tab/) in the Data Object Editor. To get to the Grouping Tab either [open an existing Data Object](https://learn.assette.com/docs/editing-data-objects/) or [create a new Data Object](https://learn.assette.com/docs/creating-data-objects/). Next, fill out the [General Info Tab](https://learn.assette.com/docs/data-object-editor-general-info/), add a data source in the [Data Source Tab](https://learn.assette.com/docs/data-source-tab/), and add columns using the [Columns Tab](https://learn.assette.com/docs/data-object-editor-general-info/) if this has not already been completed.

![How to Create "Group By" Data Settings 2](https://learn.assette.com/wp-content/uploads/2024/10/image-88-1024x542.png)

## Adding Group Options

Once the above has been completed, creating a group is fairly straightforward. We start by selecting the "Group By" options—this allows the user to select which column the rows should be grouped by. In this example, since we want to group by Asset Class (e.g., Equity, Cash, etc.) we select the columns "ASSETCLASSNAME" and "PRIMARYSECTORNAME" from the dropdown.

Assette recommends that the number of grouping options be kept to a minimum, and to ensure that groups make sense. Remember, just because you can, does not mean that you need to. In this case, allowing end users to group by price, security name, etc. won't make sense, so we won't include these options.

![How to Create "Group By" Data Settings 3](https://learn.assette.com/wp-content/uploads/2024/10/image-92-1024x542.png)
*Note that if the column is deleted from the Columns Tab while actively being edited, column will be deleted the Group By dropdown. If the column is removed from the underlying Data Block, the Data Object must be re-saved and published for the changes to take effect.*

## Adding Sorting Options

Next, we surface the option to sort the grouping. Add or remove sorting options as needed by selecting from the "Sort By" dropdown. Since any column could feasibly be used, we have included all available columns and have included both ascending and descending.

![How to Create "Group By" Data Settings 4](https://learn.assette.com/wp-content/uploads/2024/10/image-93-1024x542.png)
*Note that if the column is deleted from the Columns Tab while actively being edited, column will be deleted the Sort By dropdown. If the column is removed from the underlying Data Block, the Data Object must be re-saved and published for the changes to take effect.*

## Naming the Data Settings

We then assigning a name for the grouping setting we have created. Since this name will be shown to end user in the Fabrication Panel, ensure that the display name coveys what the setting does (i.e., don't name the Data Setting "Test"). If only one grouping option is being surfaced, "Group By" is usually sufficient. In cases where multiple grouping levels are involved, Assette suggests using consistent naming convention from level to level and between objects (e.g., use "Grouping Level 1" and "Grouping Level 2" or use "Group By" and "Then Group By")

![How to Create "Group By" Data Settings 5](https://learn.assette.com/wp-content/uploads/2024/10/image-94-1024x551.png)

## Ordering Groups

*This topic is covered in more detail in the [Group Expressions & Group Ordering](https://learn.assette.com/docs/group-ordering/) article.*

To organize groups alphabetically or numerically use, use the "Sort By'" option at the top of the [Grouping Tab](https://learn.assette.com/docs/grouping-tab/). In cases where a group needs to be conditionally re-organized (e.g., forced to the top or bottom of the list), use the "Expressions" section of the to create a custom expression which determines the relative order of the group. In this example, we will place the ASSETCLASSNAME "Cash" at the bottom of the table. In this case, start by clicking on "Insert Condition" in the Expressions section of the [Grouping Tab](https://learn.assette.com/docs/grouping-tab/). For more information on how to create expressions, see [Expressions & Group Ordering](https://learn.assette.com/docs/group-ordering/).

![How to Create "Group By" Data Settings 6](https://learn.assette.com/wp-content/uploads/2024/10/image-95-1024x551.png)

## Adding Group Header Rows

This topic is covered in more detail in [Creating Group Header Rows](https://learn.assette.com/docs/creating-group-header-rows/).

To add row directly preceding a group, use the "Header Row" section of the [Grouping Tab](http://Grouping Tab). To start select whether the Output Type for the row should be Dynamic or a Static value.

![How to Create "Group By" Data Settings 7](https://learn.assette.com/wp-content/uploads/2024/10/image-103-1024x337.png)

## Adding Group Summary Rows

*This topic is covered in more detail in [Creating Group Summary Rows](https://learn.assette.com/docs/creating-group-summary-rows/)*.

To add row directly after a group, use the "Summary Row" section of the [Grouping Tab](http://Grouping Tab). To start, tick the checkbox next to the "Add Summary Row" at the top of the section, if not done, the Group Summary Row will not be surfaced in the [Smart Shell](https://learn.assette.com/docs/smart-shells-overview/).

![How to Create "Group By" Data Settings 8](https://learn.assette.com/wp-content/uploads/2024/10/image-110-1024x536.png)
