Conditional Rollup filters matching records from a target table without creating a link relationship first, then calculates statistics on a selected field. It is useful for calculating counts, sums, averages, and other results based on field values in the current record.Documentation Index
Fetch the complete documentation index at: https://help.teable.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use Cases
| Scenario | Good for |
|---|---|
| Employee task statistics | Count in-progress tasks and completed tasks for an assignee |
| Period sales statistics | Calculate sales amount, order count, or average order value by date range |
| Duplicate data checks | Count duplicate names, phone numbers, or IDs |
| Regional reports | Aggregate business data by region, store, or channel |
Procedure
Create a conditional rollup field
Click the
+ icon on the right side of a field name, choose Conditional Rollup, and enter a field title, such as “Total sales amount”.Set filter conditions
Add filter conditions, choose the field, condition type, and comparison value. The comparison value can be a static value or a field from the current table.
Scenario Practice
Team Task Volume Statistics
Tables- Tasks table
- Statistics table
- In the employee information table, create a Conditional Rollup field named “In-progress tasks”
- Target table: Task assignments table
- Rollup field: Task ID
- Filter conditions:
- Field: Assignee -> Condition: Equals -> Value: Employee field from the current table
- Field: Task status -> Condition: Equals -> Value: “In progress”
- Aggregate function: Count all
- Create another Conditional Rollup field named “Completed tasks”
- Target table: Task assignments table
- Rollup field: Task ID
- Filter conditions:
- Field: Assignee -> Condition: Equals -> Value: Employee field from the current table
- Field: Task status -> Condition: Equals -> Value: “Completed”
- Aggregate function: Count all
Find Duplicate Values
Tables- Customers table, with fields such as customer name and phone number
- In the customers table, create a Conditional Rollup field named “Customer name duplicate count”
- Target table: Customers table (this table)
- Rollup field: Customer name
- Filter condition:
- Field: Customer name -> Condition: Equals -> Value: Customer name field from the current table
- Aggregate function: Count all
- Create a Formula field named “Duplicate flag”
- Set the formula to
IF(Customer name duplicate count > 1, "Duplicate", BLANK())
FAQ
What is the difference between Conditional Rollup and Conditional Lookup?
What is the difference between Conditional Rollup and Conditional Lookup?
Conditional Rollup returns one calculated value, which works well for totals, counts, and averages. Conditional Lookup returns a list of matching raw values, which works well for viewing detail data.

