Relation Statistics Formulas
Use Notion formulas to work with relation properties, replace parts of rollups, calculate multi-level relations, and summarize projects.
This page collects formulas related to connected databases. Use it for project, task, customer, and other multi-database structures.
If your formula involves relation properties, rollup replacement, or multi-level relation statistics, start here.
| Scenario | Main functions used |
|---|---|
| Read related pages | first(), prop() |
| Replace parts of rollups | map(), filter(), sum() |
| Multi-level relation statistics | map(), flat(), length() |
Relation properties are usually lists
Even if your workflow only relates to one page, formulas often need to treat the relation as a list.
Common pattern:
Access the status of the first related project:
To avoid empty-value errors, check first:
Replace parts of rollups directly with formulas
In the past, many statistics depended on rollups. After Formulas 2.0, related pages can often be processed directly inside formulas.
Total tasks:
Completed tasks:
Total task hours:
Highest priority score:
Multi-level relations
For example: customer -> project -> task.
Get all tasks under all projects for one customer:
Count all completed tasks:
Note: multi-level relation formulas can easily run into performance issues or formula depth limits. It is better to split the logic with helper properties.
To use these formulas directly in task reminders, project progress, note heatmaps, and reports, continue with FLO.W Notion Template.
Last updated on
Task and Project Formulas
Formula examples for task status, completion rate, priority, automatic summaries, project health, and related project-management scenarios.
Formula Writing Rules
Rules for branch return types, plain-language breakdowns, variable naming, empty-value checks, and layered formula design.
Notion Formulas