Foxcolab
Skip to content

Connect databases with relations and rollups in Notes

Link rows across two databases in Foxcolab Notes with a Relation property, then count, add up or track progress of the linked pages with a Rollup.

Updated 3 min read

In short

To connect two databases in Foxcolab Notes, add a Relation property, pick the other database and choose whether the link shows in both. Then link pages from each row's cell. To summarize the linked pages, add a Rollup property, choose the relation, the property to read and a calculation such as Sum, Count all or Percent checked. Everything stays end-to-end encrypted.

Key takeaways

  • A Relation links rows of one database to pages of another database, or of the same one.
  • Two-way relation adds a matching column to the other database, if you can edit it.
  • Limit to one page turns the relation into a single link, such as one project per task.
  • A Rollup reads one property of the linked pages and shows it as is, or as a count, sum, average, date or percentage.
  • Changing a relation's database clears its links, and Restore previous values brings them back.

Last reviewed 3 December 2026

To connect two databases in Foxcolab Notes, add a Relation property to one of them and pick the other. Each row can then link to pages in the other database. To summarize those linked pages, such as the hours logged against a project or the share of its tasks that are done, add a Rollup property. Relations and rollups work on encrypted data in your browser, so Foxcolab can't read the rows, the links or the totals.

Add a relation#

  1. Add a property

    In the database's table, click + (Add a property) at the end of the header row and choose Relation.

  2. Pick the other database

    Under Related to…, search for the database and click it. Your current database is listed as This database, for links between its own rows.

  3. Set the options

    Name the property, then choose Limit to one page and Two-way relation if you want them. With two-way on, type the name the column gets in the other database.

  4. Save it

    Click Add relation. The new column appears in the table.

The options decide how the link behaves:

OptionWhat it doesExample
Limit to one pageEach row links to one page at mostA task belongs to one project
Two-way relationAdds a matching column to the other databaseA project lists its tasks

A two-way relation needs edit access to the other database. If you don't have it, the switch is off and Notes explains why. The relation still works one-way.

Click a cell in the relation column and type in Link or search a page…. Click a page to link it, or press Enter on the highlighted one. Linked pages are listed at the top under Linked. Hover over one and click the X (Unlink) to remove it. With Limit to one page on, picking a page replaces the link.

In a two-way relation, linking from either side updates both databases.

Summarize linked pages with a rollup#

  1. Add a Rollup property

    Click + (Add a property) and choose Rollup.

  2. Open its settings

    Click the new column's header and choose Edit property.

  3. Choose what to read

    Under Relation, pick the relation. Under Property, pick the property of the linked pages you want.

  4. Choose the calculation

    Under Calculate, keep Show original to list the values, or pick a calculation.

Calculate only offers calculations that fit the property you picked:

Property you readCalculations
Any propertyShow original, Show unique values, Count all, Count values, Count unique values, Count empty, Count not empty, Percent empty, Percent not empty
NumberAlso Sum, Average, Median, Min, Max, Range
DateAlso Earliest date, Latest date, Date range
CheckboxCount all, Checked, Unchecked, Percent checked, Percent unchecked

A worked example: projects and tasks#

Say you have a Projects database and a Tasks database with a Done checkbox, a Due date and an Hours number.

  1. In Tasks, add a relation to Projects named Project, with Limit to one page and Two-way relation on. Name the column in Projects Tasks.
  2. Open each task's Project cell and link its project. The project's Tasks column fills in by itself.
  3. In Projects, add three rollups on the Tasks relation:
    1. Progress: Done with Percent checked.
    2. Deadline: Due with Latest date.
    3. Effort: Hours with Sum.

Each project row then shows how far along it is, when its last task is due and how many hours it needs. The rollups update as people tick tasks off. To lay the tasks out by status as well, see How to create a kanban board.

Who can see linked pages#

A relation doesn't give anyone access to the other database. Someone who can't open it sees You don't have access to the related database. when they try to link a page, and its rollups show No access. Share both databases with the same people, for example by keeping them in one teamspace. See Share pages and teamspaces in Foxcolab Notes.

Anyone who can edit a database can add, change or delete its properties.

Change or undo a relation#

Click the relation's header and choose Edit property. Pick a new database next to Related to and confirm with Change database. That clears the current links, but each row keeps its old links. To bring them back, open the header menu and choose Restore previous values.

Frequently asked questions

Can a database relate to itself?

Yes. Pick the same database in the list, where it's marked This database. That's how you link a task to the tasks it's blocked by, or a page to its parent.

Why can't I turn on Two-way relation?

A two-way relation adds a column to the other database, so you need edit access to it. Without that, the relation stays one-way and the switch says why.

Why does a rollup say No access?

The rollup reads the related database, and you can't open it. Ask someone with full access to that database to share it with you.

Can I use a rollup in a formula?

Yes. A formula can read a rollup with prop("Name of the rollup"), and it can also read a relation directly to filter or count the linked pages.

Did this answer your question?

One click, no account needed.

Still need help?

Our support team can take it from here.

Jump to