Skip to content

Relations, lookups and rollups

Link the records of two Bases, then show and calculate values from the linked records.

A relation links the records of one Base to the records of another Base, as in Airtable or Notion. For example, a project links to its team members. The link is a normal Obsidian wiki link in the note, such as owner: "[[Priya Shah]]", so it works in Obsidian too.

  1. Select Add column (+) after the last column of a table. In Pick column type, choose Link to another Base under Relations. You can also select Link to another Base… in the menu of a Base in the sidebar.
  2. Under Link to, choose a Base, or choose New Base and type its name. BaseStudio makes the new Base and links to it.
  3. Type the Column name, then confirm.

The new column has the type Link to another Base. Its editor shows the records of the other Base, so you can search and choose them. One cell can hold one link or many.

The sidebar shows the Bases that a Base links to below it, such as ↳ Team. Select the arrow before a Base’s name in the sidebar to show or hide its linked Bases. Select a linked record’s link to open it. The Back button returns to the Base and the view where you were.

A record also shows the records that link to it, in its Linked from section. To show the same incoming links in a table, choose Add column (+) → Linked from under Relations to add either a list of linking records or a Count of column. BaseStudio calculates it from the links in the notes, so it is always correct and works in Obsidian.

A lookup shows a property of the records that a link column points to. For example, the email of each team member of a project.

  1. Select Add column (+), then choose Lookup under Relations.
  2. Choose the Link column and the Property of the linked records.

A rollup calculates one value from the linked records. Select Add column (+), then choose Rollup under Relations. Choose the link column, the property and the calculation:

  • List values, Unique values
  • Count linked notes, Count values
  • Sum, Average, Min, Max (for numbers)
  • Earliest date, Latest date (for dates)

Lookups and rollups are formula columns. BaseStudio writes them as Obsidian formulas, so Obsidian shows the same values. To see or change the formula, open the menu of the column and select Edit formula.