A relationship is a property containing links to notes in another library. For example, a Passages library can have a Work property that points to notes in Works.
Prepare both libraries before configuring the relationship. Each related item is a note, so its writing and other fields stay with it.
Add the relationship property
Open the source library’s Table view and use the + at the end of its column headings. Choose Relationship. The setup asks for the target library; choose the library whose notes you want to pick, such as Works.
Give the field a useful name, such as Work. In its settings, Selection controls whether one or several targets can be selected. Choose according to the meaning of the field: one passage may belong to one work, while a research item may inform several works.
Connect one note
Select a cell in the new relationship column. Search or browse the target library’s notes in the picker and choose the intended work. Its title appears as a chip in the field.
This connection does not move the passage into the Works library. The passage remains in Passages; the property records what it is related to.
Show the connection from both sides
The relationship’s Backlink setting can create a matching property on the other library. With that connection in place, a work can show the passages that point to it.
Name the two sides for the reader. Work makes sense on a passage; Passages makes sense on a work. Both sides describe the same connection.
Summarize with a rollup
On the library where you want the result, add a Rollup property. Its setup has three decisions:
| Setting | Choose |
|---|---|
| Rolls up | The relationship whose linked notes should be considered |
| Property | The field to read from those related notes, such as Words |
| Summarize | The calculation, such as a total, count, earliest date, or latest date |
For a work’s total word count, roll up Passages → Words and choose the sum operation offered for that Number property. Each work’s result uses its own linked passages.
Use a formula for a more specific calculation
A formula can read a relationship as a list of notes. For example, with a relationship named Passages and a Number property named Words on the target library:
Passages.Words.sum()
The formula recipes explain filtering related notes before calculating.