A Notion power user question!
Yes, you can achieve this using Notion's Relations, Rollups, and Formulas. I'll guide you through the setup. By the end of this, you'll have:
- Manual Area selection: Ability to manually choose an Area for a page (or entry) in Topics DB.
- Auto Area application: Automatic assignment of an Area based on the selected Topic, using the relation between Topics DB and Areas DB.
Here's the step-by-step setup:
Prerequisites:
- Areas DB (database with Area entries, e.g., "Marketing", "Sales", "Product")
- Topics DB (database with Topic entries, e.g., "SEO", "Content Strategy", "Lead Generation")
- A Relation property in Topics DB that connects each Topic to an Area (we'll call this "Area Relation")
Step 1: Create the Relation property in Topics DB
In your Topics DB:
- Add a new property:
Area Relation (or any name you like)
- Choose Relation as the property type
- Select Areas DB as the related database
- Enable Allow multiple areas (if a topic can belong to multiple areas) or leave it disabled (if one topic = one area)
Now, each Topic entry can be linked to an Area entry. For example:
| Topic (in Topics DB) | Area Relation |
|---|
| SEO | Marketing |
| Content Strategy | Marketing |
| Lead Generation | Sales |
Step 2: Create a Rollup property in Topics DB (optional but helpful)
This step is not mandatory but helps with understanding the relation. Add a Rollup property in Topics DB:
- Name it
Area via Relation (or similar)
- Choose Rollup as the property type
- Select
Area Relation as the Relation property to roll up
- Pick Name (or any other property you want to display from Areas DB, like "Title")
This Rollup property will show the Area name linked to each Topic, via the Relation. It's a nice visual confirmation of the connection.
Step 3: Create the dual-option Area property in your main database (Pages DB)
Assuming you have a database where you're tagging Topics (let's call it Pages DB, where each page/entry represents a note, article, task, etc.).
In Pages DB, add two new properties:
1. Manual Area (Property type: Relation to Areas DB)
* This allows manual selection of an Area.
2. Auto Area via Topic (Property type: Formula)
* This will automatically fetch the Area related to the selected Topic.
Here's the Formula for Auto Area via Topic:
if(not empty(prop("Topic")),
(prop("Topic").relation("Area Relation").map(area).first()),
""
)
Breakdown:
prop("Topic") references the Topic property in your Pages DB (assuming it's a Relation to Topics DB).
not empty(...) checks if a Topic is selected.
relation("Area Relation") traverses the relation from Topics DB to Areas DB (using the "Area Relation" property we created in Step 1).
.map(area).first() fetches the first related Area (if multiple areas are allowed, it takes the first one; adjust as needed).
- If no Topic is selected, the formula returns an empty string (
"").
Step 4: Create a consolidated "Area" property (the final result)
Add a third property in Pages DB:
3. Area (Property type: Formula)
if(not empty(prop("Manual Area")),
prop("Manual Area"),
prop("Auto Area via Topic")
)
Logic:
- If
Manual Area is filled (not empty), use that value.
- Otherwise, fall back to
Auto Area via Topic (the formula from Step 3).
This Area property is your final output. It prioritizes manual selection but auto-fills via Topic if no manual choice is made.
Final structure in Pages DB:
| Topic | Manual Area | Auto Area via Topic | Area (Final) |
|---|
| SEO | [empty] | Marketing | Marketing |
| Lead Generation | Sales | Sales | Sales |
Now:
- If you manually select an Area in
Manual Area, it overrides the automatic value.
- If
Manual Area is empty, the Area property auto-populates with the Area related to the selected Topic.
Tips & Variations:
- If you want to concatenate multiple Areas (if a Topic relates to several Areas), adjust the Formula:
.map(area).join(", ") instead of .first().
- To visualize the flow:
Auto Area via Topic is hidden from view, and only Area (the consolidated result) is shown to users.
- If your setup changes, e.g., renaming properties, make sure to update the Formulas accordingly.
That's it! You've now implemented a flexible, dual-mode Area assignment system in Notion, combining manual control with automated convenience.
Happy Notioning!