> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uplifter-curling.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I count and total rows in a custom report?

> Use the report builder's Summary card to group rows by one or two fields, count, sum or average each group, add Subtotal and Total rows, and pin up to six summary tiles.

> [!NOTE]
>
> **Must know**
>
> * The **Summary** card is in the report builder, under the filters. Its hint reads: "Count, total or average the rows per group, add a totals row, and pin key numbers at the top. Leave it empty for a plain list of rows."
> * You can group by up to **two** fields. A date field can be grouped **By day**, **By month** or **By year**. Fields with a date and a time can't be grouped, and nor can a person who placed or paid for an order (Registered by, Billed to, Payer). A member can be grouped.
> * Each group can have up to 8 calculations: **Count of rows**, **Count distinct**, **Sum**, **Average**, **Minimum** and **Maximum**. Sum and Average take a number or money field. Minimum and Maximum also take a date.
> * When rows are grouped, the report shows one row per group, not your selected columns: "Rows are grouped, so the report shows the groups instead of these columns. Remove the grouping to list rows again."
> * Downloads, **Send now** and scheduled emails carry the grouped table with its Subtotal and Total rows. The summary tiles are not included.

**1. Start from a report**

Open **Reports → Report Builder**, pick a **Data source** and add any **Filters** you need. See [What is the report builder?](https://docs.uplifter-curling.com/club/reports/what-is-the-report-builder.md).

**2. Group the rows**

In **Summary**, under **Group rows by**, choose a field in **By**. If you want a second level, choose another field in **Then by**. For a date, pick **By day**, **By month** or **By year**. Each group column can be renamed under **Column name**. **No grouping** removes a level.

**3. Add calculations**

Under **Per group**, click **Add a calculation**. Choose the function, and for every function except **Count of rows** choose the **Field** it works on. Rename the column if you like. **Remove calculation** takes one away.

**4. Sort and total**

**Sort groups by** orders the groups by **Group name** or by any calculation, **Ascending** or **Descending**. You can also click a column header in the preview ("Sort the groups by this column"). Tick **Show totals** to add a **Total** row at the bottom. With two levels of grouping, you also get a **Subtotal** row under each first-level group.

**5. Pin summary tiles**

Under **Summary tiles** ("Key numbers shown above the report, e.g. members this season"), click **Add tile**, up to six. Give each one a **Caption** and a calculation. To count only part of the report, change **All report rows** to **Only where \{field} is in** and pick a period, such as **This month**. Each tile can have its own period.

**6. Check and save**

The **Preview** shows the tiles above the grouped table and a count of groups and rows. Then click **Save report**.

Rows with no value in a grouped field are gathered under **(none)**. If a grouping makes more than 1,000 groups, the preview shows the first 1,000 and says "Showing the first \{count} groups. Add a filter to see the rest."

Example: to count this season's signups per league, use the **League registrations** source with a **Registered at** filter set to **is in → This season**. Group by **League**, add **Count of rows** and tick **Show totals**. Then add a tile with **Count distinct** on **League** to show how many leagues have signups.

## Periods that move with the calendar

A date filter or a tile can use **is in** with a period: **This season**, **Last season**, **This month**, **Last month**, **This week**, **Last N days** (you enter the number of days) or **Year to date**. The period is worked out each time the report runs, by your club's calendar and timezone:

* **This season** runs from the first day of your season start month to the day before that month comes round again. **Last season** is the season before. See [How do I set the season start month?](https://docs.uplifter-curling.com/club/get-set-up/how-do-i-set-the-season-start-month.md).
* **This week** runs Monday to Sunday.
* **Last N days** counts today as one of the days.

A saved or scheduled report with **This month** always covers the month it is run in, so you don't need to edit it each month.

![The Summary card of a custom report: rows grouped by League, a Count of rows calculation, groups sorted, Show totals ticked and a summary tile.](https://mintcdn.com/curling/VqjiJhhyqYbQyWiJ/images/club/reports/how-do-i-count-and-total-rows-in-a-custom-report.webp?fit=max\&auto=format\&n=VqjiJhhyqYbQyWiJ\&q=85\&s=01346001d880b8187d5ae000c9e2afeb)

![The Preview of a grouped report: summary tiles above a table with one row per league, its count, and a Total row, with the count of groups and rows.](https://mintcdn.com/curling/VqjiJhhyqYbQyWiJ/images/club/reports/how-do-i-count-and-total-rows-in-a-custom-report-2.webp?fit=max\&auto=format\&n=VqjiJhhyqYbQyWiJ\&q=85\&s=01792263b75f5b9b40a79b17e3b6a196)

**Related:** [What is the report builder?](https://docs.uplifter-curling.com/club/reports/what-is-the-report-builder.md) · [How do I email a report on a schedule?](https://docs.uplifter-curling.com/club/reports/how-do-i-email-a-report-on-a-schedule.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.