---
title: "Showing one entry per group in a View"
date: 2026-11-23
updated: 2026-11-23
author: "Rafael Bennemann"
link: "https://www.gravitykit.com/docs/gravityview/filter-and-sort-results/showing-one-entry-per-group-in-a-view/"
category: "GravityView > Filter and Sort Results"
---

A View lists every entry that matches its filters. When a form holds several entries for one group, such as a pottery class with a session every month, the View lists that class once per session.

GravityView has no setting that removes the repeats. These ways show each group once, or group the repeats under one heading:

| Way | What visitors see | Upkeep |
|---|---|---|
| [Star one entry per group](#star-one-entry-per-group) | One entry per group, with any of its fields | You star an entry when a group starts |
| [Show the next date of each group](#show-the-next-date-of-each-group) | One entry per group that has a date in the coming period | None |
| [Keep one entry per group in a form of its own](#keep-one-entry-per-group-in-a-form-of-its-own) | One entry per group, with its other entries on its own page | You add an entry when a group starts |
| [List the groups with a GravityMath summary](#list-the-groups-with-a-gravitymath-summary) | Each group's name as plain text, with a count or a total | None |
| [Group the entries in a DataTables View](#group-the-entries-in-a-datatables-view) | Every entry, under one heading per group | None |

Advanced Filtering is built into GravityView Pro, and the first two ways use it. To turn it on or off, go to **Plugins**, click **Features** in the **GravityView Pro** row, and click **Turn on** or **Turn off** in the **Advanced Filtering** row.

## Star one entry per group

Gravity Forms shows a star next to each entry on its **Entries** screen. You star one entry of each group, and the View then lists only the starred entries.

- Go to **Forms**, then click **Entries**, and choose your form at the top of the page.
- Click the star next to one entry of each group. The star turns orange.

![The Gravity Forms Entries screen of a Class sessions form, where the first entry's orange star is outlined in red with an arrow pointing to it, and three more sessions are starred](https://www.gravitykit.com/wp-content/uploads/2026/11/gravity-forms-entries-star-one-session.png)
- Edit the View, click the **Filter & Sort** tab in the **Settings** box, and click **Add Condition** under **Advanced Filter**.
- Set the condition to **Starred** `is` **Yes**.

![The Filter & Sort tab of a View's Settings box, with the Advanced Filter condition Starred is Yes outlined in red and an arrow pointing to it](https://www.gravitykit.com/wp-content/uploads/2026/11/gravityview-advanced-filter-starred-is-yes.png)
- Click **Update**.
The View then lists one entry per group:

![A table of classes on a pottery studio's site, with Glazing workshop, Hand building for beginners, Raku firing and Wheel throwing basics listed once each, with their teacher and time, on pale yellow rows](https://www.gravitykit.com/wp-content/uploads/2026/11/gravityview-one-entry-per-class-starred.png)
*The condition belongs to this View, so the form's other Views keep listing every entry*

### Starred entries are featured

The rows above are pale yellow because, while Featured Entries is on, a starred entry is also a featured entry. The form's other Views highlight it too, and keep it in its usual place in their order while **Move Featured Entries to Top** is off, as it is in new Views. To keep the rows plain:

1. Go to **Forms**, hover over your form, and click **Settings**.
2. Click **Featured Tiers**, then click the **Featured** tier.
3. Under **Row or card color**, choose **No color**, and click **Done**.
4. Click **Save Tiers**.

[Getting started with Featured Entries](https://www.gravitykit.com/docs/gravityview-pro/featured-entries/how-do-i-feature-an-entry/) explains featured entries and their tiers.

### Keep the stars up to date

New entries come in without a star, so give a new group a star too, such as the first session of a new class. If you delete old entries from time to time, keep the starred entry, or star another entry of the group, so the group stays in the View.

To see which entries have a star, click **Starred** above the table on the **Entries** screen.

## Show the next date of each group

When every group has one entry per period, such as a class that meets once a month, filter the View on the date. A View limited to the coming month then lists each class once, with its next session, and needs no upkeep.

- Edit the View, click the **Filter & Sort** tab in the **Settings** box, and click **Add Condition** under **Advanced Filter**.
- Set the condition to your date field, `is after`, **Yesterday**.
- Click **+ AND** below the condition group.
- Set the new condition to the same date field and `is before`. Choose **Custom Value**, and type `+1 month`.
- Click **Update**.

![The Filter & Sort tab of a View's Settings box, whose Advanced Filter section has two condition groups joined by AND: Date is after Yesterday, and Date is before the custom value +1 month](https://www.gravitykit.com/wp-content/uploads/2026/11/gravityview-advanced-filter-next-date-window.png)
*The View then lists each class with its next session:*![A Next sessions table on a pottery studio's site, listing Raku firing on 11/28/2026, Glazing workshop on 12/05/2026, Hand building for beginners on 12/12/2026 and Wheel throwing basics on 12/19/2026](https://www.gravitykit.com/wp-content/uploads/2026/11/gravityview-next-session-per-class.png)A group with two dates in the coming month appears twice, and a group with no date in it doesn't appear at all. Set the custom value to match the schedule, so that each group has one date in the period.

## Keep one entry per group in a form of its own

When each group has details of its own, such as a class's teacher and price, keep them in a second form with one entry per group. A View of that form lists each group once. To let visitors open a group's own page, click the gear icon on the field that shows the group's name, such as **Class**, and turn on **Link to single entry**.

To show a group's other entries on that page, add a **Connected View** field to the Single Entry layout of the View. In this page's example, its settings are:

- **View to embed**: the View of the sessions.
- **Show as**: **Show the matching entries here**.
- **Which entries it shows**: the sessions whose **Class** `matches` this entry's **Class**.

Each class's page then lists its own sessions. [How to embed a View inside another View to show related entries](https://www.gravitykit.com/docs/gravityview/view-setup/how-to-embed-a-view-inside-another-view/) has the steps, and the field's name on sites without Connected Views. When each entry stores the ID of its group's entry, [Getting started with Connected Views](https://www.gravitykit.com/docs/gravityview-pro/connected-views/connecting-views-with-connected-views/) shows how to link the two Views from a dialog.

## List the groups with a GravityMath summary

A GravityMath summary groups entries by one field and shows a table with one row per group. Its two columns are the group's name and a count or a total. The names are plain text, so visitors can't click through to a group's entries.

This shortcode lists each class of form 12 with its number of sessions, where 1 is the ID of the Class field:

```
[gravitymath action="summary" form_id="12" group_by="1" operation="count"]
```

[How to display summaries using a block, widget, or shortcode](https://www.gravitykit.com/docs/gravitymath/how-to-display-summaries-using-gvmath/) has the block, the widget and the other settings.

## Group the entries in a DataTables View

To keep every entry and add one heading per group, turn on RowGroup in a DataTables View. The table then lists each group's entries under a row with the group's name, and the column it groups by still shows the name in each row. [Grouping rows by common field values](https://www.gravitykit.com/docs/gravityview-pro/datatables/grouping-rows-by-common-field-values/) has the steps.