Venolio

Relations and rollups

A relation property links the pages of one database to pages of another, for example each task to its client, or each meeting note to the people’s records it is about. A rollup property then calculates over those linked pages, for example the total estimate of a project’s tasks.

Add a relation

  1. Add a property (see Properties) and choose the type Relation.
  2. Under Related database, pick the database whose pages you want to link. It can be the same database, for example for parent and sub-items.
  3. Tick Two-way relation if the other database should show the link too (see below).
  4. Click Save.

Click the relation value in a table cell or on a record page. The dropdown searches the related database; each pick adds or removes a page and is saved at once. When many pages match, it shows the first ones and Showing N of M matches. Search to narrow the list.

  • A table cell shows the first three related pages and +N for the rest.
  • On a record page, the related pages are listed one per line and each opens its page. Past ten pages you see eight and Show N more.
  • A page you do not have access to shows as Unavailable page or is left out. Its link stays in place; you just cannot see it.

Up to 100 related pages per page.

A relation dropdown with chosen pages as chips

Two-way relations

A one-way relation shows the link only on the side where you set it. A two-way relation adds a matching property to the related database, so linking a task to a client also lists the task on the client’s page, and editing either side updates the other.

  1. In the relation’s settings, tick Two-way relation.
  2. Under Property in related database, type the name of the new property in the related database (by default the name of this database).
  3. Click Save.

The hint under the box tells you which side you are on:

  • Adds a matching property to the related database. You need owner access to both databases.
  • Links stay connected in both directions.
  • This is the reverse side. Editing it updates related pages you can edit.

Good to know:

  • Editing the reverse side changes the related pages you are allowed to edit. Links to pages you cannot see stay private and are kept.
  • A relation from a database to itself stays one-way.
  • To turn a two-way relation back into two independent one-way relations, untick Two-way relation and save. Both properties keep their links.
  • While a relation is two-way, its related database cannot be changed. Make it one-way first.

Rollups

A rollup reads one property of the pages linked through a relation and calculates a single value from it.

  1. Add a relation first. Without one, the rollup settings say Add a relation property first.
  2. Add a property with the type Rollup.
  3. Under Relation, choose the relation.
  4. Under Calculate, choose a calculation.
  5. Under Property, choose the property of the related pages to calculate over. The list shows only properties that suit the calculation.
  6. Click Save.

Only related pages you can open are included. Pages you cannot open, and pages in the trash, do not count.

Rollup calculations

Calculation Result Works on
Count pages Number of related pages Any property or the name
Count values Number of related pages with a value Any
Count unique Number of different values Any
Count empty Number of related pages without a value Any
Count not empty Number of related pages with a value Any
Percent empty Share without a value Any
Percent not empty Share with a value Any
Count checked Number of ticked boxes Checkbox, formula
Count unchecked Number of unticked boxes Checkbox, formula
Percent checked Share of ticked boxes Checkbox, formula
Percent unchecked Share of unticked boxes Checkbox, formula
Sum Total Number, formula, ID
Average Mean Number, formula, ID
Median Middle value Number, formula, ID
Minimum Smallest value Number, formula, ID
Maximum Largest value Number, formula, ID
Range Largest minus smallest Number, formula, ID
Show original All the values, as a list Any
Show unique The different values, as a list Any
Earliest date First date Date, created time, last edited time, formula
Latest date Last date Date, created time, last edited time, formula
Date range From the first to the last date Date, created time, last edited time, formula

Details:

  • The percent calculations give a fraction from 0 to 1: 0.25 means a quarter. Without related pages they are empty.
  • Sum of no values is 0; the other number calculations are empty.
  • Empty values are skipped by the number and date calculations. A value of the wrong kind, for example text in a sum, shows Rollup error instead of a result.
  • A rollup cannot read another rollup.
  • Rollups are calculated, so you cannot edit them, and they cannot group a view. They can be filtered and sorted, used as chart metrics and read by formulas.

For calculations that a rollup cannot do, use a formula over the relation, for example prop("Tasks").map(current.prop("Estimate")).sum(). See Formulas.

About this part of Venolio: Databases and projects without a separate tool

Checked against the app on . The same help is built into the Venolio apps and works offline. Something wrong or missing? Tell us.