Notion Table Linking: A Complete Guide
In this article
Yes, you can link tables in Notion to create powerful relational databases. This allows you to connect related information across different tables, making it easier to manage complex projects and data.
What You'll Need
- A Notion account (free or paid)
- Two or more Notion databases (tables)
Step-by-Step
- Create Your Databases: First, ensure you have the two (or more) databases you want to link. These can be any type of Notion database – table, board, gallery, list, or calendar. Let's call them "Projects" and "Tasks" for this example.
- Add a Relation Property: In one of your databases (let's start with "Projects"), add a new property. Click the "+ Add a property" button at the end of the properties list.
- Choose "Relation" Property Type: In the property type selection menu, scroll down and select "Relation."
- Select the Related Database: A pop-up window will appear asking you to choose the database you want to relate to. In our case, select "Tasks." This establishes the connection between the "Projects" database and the "Tasks" database.
- Configure Relation Settings (Important!): This is a crucial step. Notion offers several options for how the relation works.
- Show on: Choose whether to show the linked tasks on the project page (“Project” database) or the task page (“Tasks” database), or both. Showing it on both is usually the most flexible.
- Create New: Decide whether you want to allow users to create new tasks directly from the project page. This is useful for quickly adding tasks related to a project.
- Limit Relations: You can set a limit to the number of tasks that can be linked to a single project.
- Show cardinality: Click on the "Show cardinality" option to define how many projects can be related to a single task. The default is “one-to-many,” meaning one project can have many tasks, but one task can only be linked to one project. Change this if your data model requires it (e.g., one task can belong to multiple projects).
- Save the Relation: Click the "Add relation" button to save the newly created relation property.
- Link Records: Now, within the "Projects" database, you'll see a new column showing the relation property. For each project, click on the empty field in the relation column. A menu will appear allowing you to select the tasks related to that project. Start typing the task name to filter the list.
- Repeat for the Other Database (Optional): If you chose to “Show on” both databases, you’ll likely want to create a similar relation property in the “Tasks” database, pointing back to the “Projects” database. This creates a two-way link, allowing you to see which project a task belongs to directly from the task view. Repeat steps 2-5, but this time add the relation property to the “Tasks” database and select the “Projects” database as the related database.
Common Mistakes
- Forgetting to Configure Relation Settings: Not setting the “Show on” and cardinality options correctly can lead to confusion and a less-than-ideal workflow. Make sure you understand how these settings affect the relationship.
- Linking the Wrong Databases: Double-check that you’re linking the correct databases. A mistake here can create a completely unusable relationship.
- Not Understanding Cardinality: Incorrectly setting cardinality (one-to-one, one-to-many, many-to-many) can limit your ability to represent your data accurately.
- Not Using Rollups: After linking tables, you'll likely want to pull data from the related table into the primary table (see the “Tips” section). Forgetting to use rollups prevents this.
Tips
- Use Rollups to Aggregate Data: Rollups are a powerful feature that allows you to pull data from the related database into the primary database. For example, in the “Projects” database, you could use a rollup to count the number of tasks linked to each project or calculate the total effort estimated for those tasks. To create a rollup, add a new property (e.g., “Total Effort”), choose “Rollup” as the property type, select the related database (“Tasks”), choose the property to rollup from the “Tasks” database (e.g., “Effort”), and select the desired calculation (e.g., “Sum”).
- Use Formulas to Calculate Derived Values: Combine rollups with formulas to create even more sophisticated calculations. For example, you could calculate the percentage of tasks completed for each project.
- Filter Views to Focus on Specific Data: Create filtered views in both databases to focus on specific subsets of data. For example, you could create a view in the “Tasks” database that only shows tasks related to a specific project.
- Use Linked Views to Combine Data from Multiple Databases: Linked views allow you to create a single view that combines data from multiple databases. This can be useful for creating dashboards or reports that provide a holistic view of your data.
Troubleshooting
- Relation Property Not Appearing: If the relation property doesn’t appear in the database, double-check that you’ve saved the relation correctly and that you’ve selected the correct database in the relation settings. Refresh the page.
- Cannot Link Records: If you can’t link records, make sure you have the necessary permissions to access both databases. Check the cardinality settings – if it’s set to one-to-one and a task is already linked to another project, you won’t be able to link it to a new project.
- Rollup Not Showing Correct Data: Double-check that the rollup is configured correctly. Make sure you’ve selected the correct related database, property to rollup, and calculation.
- Database Syncing Issues: Sometimes, Notion can experience syncing issues. Try refreshing the page or closing and reopening the Notion app.
Frequently Asked Questions
What is the difference between a relation and a rollup?
A relation creates a link between records in two databases, allowing you to connect related data. A rollup pulls data from the related database and displays it in the primary database.
Can I link more than two databases?
No, Notion currently only supports linking two databases directly. However, you can create a chain of relations (database A relates to database B, and database B relates to database C).
How do I edit a relation after it’s been created?
Click on the relation property in the database properties and you should be able to edit the settings, including the related database and cardinality.
Can I delete a relation?
Yes, you can delete a relation by going to the database properties and deleting the relation property. Be aware that this will remove the link between the databases.
Do linked databases affect Notion’s performance?
Linking a large number of records across multiple databases can potentially impact performance, especially on slower devices. Keep your database structures efficient and avoid unnecessary relations.