---
title: "Rollup"
description: "Aggregate values from related records."
canonical_url: "https://docs.vettero.com/data/tables/rollup"
---
# Rollup

> Aggregate values from related records.

<field-meta group="Computed" icon="i-lucide-calculator" type="rollup" unique="No" value="Computed">



</field-meta>

**Rollup** calculates a number from rows linked by [Relation](https://docs.vettero.com/data/tables/relation) or [Multi Relation](https://docs.vettero.com/data/tables/multi-relation). You do not pick a value. Changing Config does not rewrite existing cells until you **Recalculate values**.

Name, key, hidden, and permissions are the same for every column — see [Tables](https://docs.vettero.com/data/tables).

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Relation Field
      </strong>
    </td>
    
    <td>
      The Relation or Multi Relation column on this table.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Aggregation
      </strong>
    </td>
    
    <td>
      <strong>
        Sum
      </strong>
      
      , <strong>
        Average
      </strong>
      
      , <strong>
        Count
      </strong>
      
      , <strong>
        Min
      </strong>
      
      , or <strong>
        Max
      </strong>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Target Field
      </strong>
    </td>
    
    <td>
      Field on related rows to aggregate. <strong>
        Count
      </strong>
      
       can skip this (counts rows). <strong>
        Sum
      </strong>
      
      , <strong>
        Average
      </strong>
      
      , <strong>
        Min
      </strong>
      
      , and <strong>
        Max
      </strong>
      
       only list number-like fields (number, currency, rating, duration, progress, rollup, or a formula that returns a number).
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Filter related rows
      </strong>
    </td>
    
    <td>
      Optional. Opens a dialog to filter related rows (for example only paid orders). Same filter builder as table filters.
    </td>
  </tr>
</tbody>
</table>

Empty related set: **Count** is `0`; other aggregations are empty.

## Use case

- Order **Line total** as sum of linked product prices.
- Customer **Revenue** as sum of linked order totals, optionally only where status is paid.
- **Order count** on a customer using Count and no target field.

<field-page-nav>



</field-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
