Filtering, Sorting & Limiting
Control exactly which related records feed a rollup or lookup field by filtering, sorting and limiting them.

Status is Active, sorted by Hours — and the values it produces for each recordBy default, a rollup or lookup field uses every related record it can reach through the relationship you chose. Filters, sorting and limits let you narrow that down, so the field only summarizes or pulls the records you actually care about.
All three controls live in the same place — the field editor, underneath the relationship and field you're summarizing or looking up. They work on both rollup and lookup fields, and you can combine them.

Filtering
A filter decides which related records are included.
Instead of counting every task on a project, count only the active ones. Instead of looking up every assignee's email, look up only the ones whose job title is Manager.
Open the field editor for your rollup or lookup field.
Under Filter, add a condition — pick a field on the related table, an operator, and a value.
Add more conditions to narrow it further, or group them to match on any one of several conditions.
Filtered values stay up to date automatically. If a record changes so that it now matches — or no longer matches — your filter, the rollup or lookup recalculates.

Sorting
Sorting decides the order of the related records before they're used.
For a lookup, this is the order the values appear in on the record. For a rollup, it matters most when combined with a limit — it's what decides which records make the cut.
Under Sort, choose a field on the related table and a direction.
Add more sort rules to break ties.

Limiting
A limit caps how many related records are used.
Combined with sorting, this is how you build "top N" fields — roll up the value of the 10 most recent deals, or look up the email of the 3 most recently assigned users.
Under Limit, enter the maximum number of records to use.
If you don't set a sort, records are limited using the default order — most recently created first.


Putting it together
A worked example — "the value of my 5 biggest open deals":
Field: a rollup on the Company → Deals relationship, summing Value
Filter: Stage is not
ClosedSort: Value, descending
Limit: 5
The rollup now sums the five highest-value open deals for each company, and updates itself whenever a deal's value or stage changes.
Last updated
Was this helpful?

