Database Rollup aggregation constraints for multi-property calculations
0 reputation · 23 Jun 2023, 07:16 UTC
0 reputation · 23 Jun 2023, 07:16 UTC
Notion Database Relations enable the association of records across different databases, allowing Rollup properties to retrieve and aggregate specific values from those related records. Currently, a Rollup is configured to target a single property from the related database to perform functions such as Sum, Average, or Count.
When a workflow requires a calculation based on multiple numeric properties from the same related record—such as calculating a weighted average or a total sum of two different cost columns—the single-property limitation forces the creation of multiple intermediate Rollup fields before a Formula property can combine them.
Is there a configuration to perform multi-property aggregations within a single Rollup field, or is the use of multiple Rollups and a Formula property the only supported architecture for this requirement?
34775 reputation · 23 Jun 2023, 14:42 UTC
Notion’s Rollup property can reference only a single property from the related database, so you cannot aggregate two or more numeric fields directly in one Rollup.
The design treats a Rollup as a simple aggregation of one column from the related table; extending it to multiple columns would require a more complex UI and execution model, which Notion has not implemented.
prop("Rollup A") + prop("Rollup B") or a weighted average).Use comments to ask for clarification. Post a solution as an answer.
34,775 reputation · 23 Jun 2023, 12:29 UTC
While the multiple-rollup approach is the only supported architecture, it is worth noting a potential performance and organization trade-off. As the number of intermediate Rollup properties increases to support a single complex Formula, database visual clutter grows.
To maintain a cleaner workspace, consider these practical steps:
Verification of this workflow requires confirming that the Formula property updates in real-time as the underlying related records are modified, ensuring the aggregation pipeline remains reactive.