LogoFLO.W
  • Pricing
  • Blog
  • Docs
  • Thinking
  • About
Get Started
  • Problem Background
  • Solution Approach
  • Step 1: Create a Relation
  • Step 2: Write a Formula
  • Step 3: Limit the Relation to One Page
  • Summary
Notion 问答·
2025/04/09

Notion Database Accounting: How to Automatically Update Account Balances

Build a simple accounting system in Notion using Relation limits and Formula functions to automatically update asset account balances — no manual maintenance needed.

avatar for 二一
二一
Notion Database Accounting: How to Automatically Update Account Balances

This question comes from a reader of the Notion course. It has been organized and shared here. If you encounter similar issues while using Notion, feel free to leave a comment.

Problem Background

Below is a simple accounting module. We want the "My Asset Distribution" database to display the latest balance for each account in real time.

Accounting module overview

The core requirement is straightforward: After adding a new monthly record, the "Latest Balance" for each account should update automatically — no manual changes needed.

Solution Approach

The entire solution consists of three steps:

  1. Use a Relation to link monthly records to asset accounts
  2. Use a Formula function to automatically read the balance from the related record
  3. Leverage the Relation's "Limit to 1 page" feature to ensure only the latest record is displayed

Step 1: Create a Relation

First, link the latest month's page (e.g., "March") to all asset accounts via a Relation.

Create a Relation

Step 2: Write a Formula

Next, add a Formula property to display the latest balance for each account.

Formula example

Here's a breakdown of the formula logic:

Using lets() to define variables:

  • zfb: The Alipay balance from the currently related month
  • zsyh: The China Merchants Bank balance from the currently related month

Using ifs() for conditional logic:

  • If the current row's name is "Alipay," return the value of zfb
  • If the current row's name is "China Merchants Bank," return the value of zsyh

If you have more asset accounts, simply add the corresponding variables in lets() and the matching conditions in ifs(). The formula structure is exactly the same — just extend it following the same pattern.

Step 3: Limit the Relation to One Page

At this point, you might wonder: if you add an April record, won't the latest balance show two values?

Duplicate relation issue

The fix is simple — enable "Limit to 1 page" on the Relation property:

Limit Relation to one page

This way, when you add an April record and link it to the asset accounts, the March relation is automatically removed. The asset account always links to only the most recent record, so the balance is always up to date.

As shown below, simply press Ctrl+D to duplicate the "March" record, and the previous record's relation is automatically cleared:

Auto-update demo

Summary

The key technique in this solution is the Relation's "Limit to 1 page" feature — it ensures the database always links to only the latest record. Combined with a Formula function, this enables automatic balance updates.

This logic can be reused in any scenario where you need to display only the most recent related record — such as a project's latest status, a client's most recent contact record, and more.


📘 FLO.W — Notion Personal Management System

FLO.W is a Notion-based personal management template that integrates tasks, notes, projects, habits, and more, complete with comprehensive tutorials.

Ready-to-use Notion template system
Complete tutorials included, beginner-friendly
Continuously updated and maintained
Learn About FLO.W Template✨ 1237+ users chose FLO.W
2025/04/09
Share this post
All Posts

More Posts

How to Show Only the Latest Entry in a Notion Database
#Notion 问答

How to Show Only the Latest Entry in a Notion Database

Use Relation + Formula to display only the last updated record in a Notion database, ideal for project status tracking, client management, and more.

2024/09/07
How to Use Sum Values in Notion Database Calculations?
#Notion 问答

How to Use Sum Values in Notion Database Calculations?

Learn how to indirectly use Sum aggregate values in Notion Database Formula calculations through Relation, Rollup, and the map function to calculate proportions.

2024/11/25
How to Auto-Expand Database Sub-Items in Notion
#Notion 问答

How to Auto-Expand Database Sub-Items in Notion

Solve the issue where Notion database sub-items automatically collapse after every page refresh, by adding a Parent item filter condition to keep sub-items expanded.

2024/04/30

Newsletter

Join the community

Subscribe to our newsletter for the latest news and updates

LogoFLO.W
TwitterX (Twitter)YouTubeYouTubeBilibiliXiaoHongShuEmail
Product
  • Features
  • Pricing
  • FAQ
Resources
  • Blog
  • Documentation
  • Notion Custom Agent
Company
  • About
  • Contact
Legal
  • Cookie Policy
  • Privacy Policy
  • Terms of Service

Subscribe for more Notion tips and updates

© 2026 FLO.W, All rights reservedNotion is a trademark of Notion Labs, Inc. This is an independent third-party site, not affiliated with or endorsed by Notion.
Featured on Uneed