Adding one to a number manually can get tedious, especially when youβre tracking habits, inventory, or daily sales in Notion. In this tutorial, youβll learn how to create:
-
a β+1β button to increment any number field by one
-
a ββ1β button to undo accidental clicks
-
a reset button to set all counters to zero.
-
a database button that logs your daily total in a separate tracker
By the end, youβll have a solution that will look something like this: π

Video Tutorial
Instructions
1. Creating the +1 database button
-
First make sure you have a database with a number property (the property you want to add 1 to) - in this tutorial I will refer to this as the Counter database (your may be called something else)
-
If you do not have a database, create one named Counter and make sure it has a Number property
-
Add a button property
-
Click on the button property and select Edit automation
-
At the top, give the button a label (tip. use emoji's)
-
Click on New action
-
Select the number property and select Custom formula
-
In the formula box type the formula shown below π

-
Explanation
-
This page - returns the record the database button was clicked in
-
dot (.) - will then list all the properties in this record
-
Select the number property you want to add 1 to.
-
+ 1 adds 1 to the the number
-
-
Save
-
Test - each click of the button should add 1 to the number property.
2. Create the -1 database button
The easiest way to create this button is to duplicate the button you've just made and then alter the name and formula:
-
Right click on the β+1β button property and select Duplicate property.
-
Right click on the new property and select Edit automation
-
Click in the formula
-
Change the + to -
-
Change the button label
-
Save
-
Test - each click of the button should add 1 to the number property.
3. BONUS: Log daily totals
This will allow you to log a daily record of your number tally. So at the end of the day, when youβve finished tallying your habits, sales, etc., you click a database button to record the total. Then it sets the number back to zero in the counter database.
1 Create a Tracker Database
-
Create a new database ( I named mine Tracker)
-
Add a Date property
-
Add a Number property
-
Add a Relation property that has a 2-way relation back to your Counter database. This is an optional step but will benefit you in the future if you want to start tracking statistics and totals.
2 Add a βRecordβ database button
-
In your Counter database, add a button property.
-
Right click on the property and select Edit automation
-
Add a New action - select Add page to
-
Select the Tracker database in the Select database section
-
Select Date under Edit property drop down list
-
Select Date triggered - this will record the date the button was clicked on
-
-
Select the Number property under the next Edit property drop down list
-
Click on Edit as formula (formula symbol)
-
Type in This page
-
Dot (.)
-
Select the Number property from the Counter database
-

-
Optional - Add an automated title value to the new record - in this example I add the date followed by the Name from the counter database (i.e the habit)
-
In the same section click on the Edit as formula for the Name (title) property
-
Add the title you want to use, copy the formula below to get the date followed by habit
-

Your button automation should now look something like this π

-
Click Save
4. Final Touches & Layout
Now it's time to make the database look good and become part of your workspace
-
Turn each database into a page
-
Select the database and pick Turn into page
-
-
Create a table view of your counter database
-
Turn the view into a list view - select layout - List view
-
Make the button properties visible - select Property visibility - select the button properties
-
-
-
Adjust column widths or add filters to focus on active habits/items.
5. Optional - Add a Refresh all button
You can add a Refresh All button to the page where you have the list view of the Counter database
-
Add a button to the page (type /button)
-
Give the Button a label and icon
-
Click Add action
-
Select Edit pages in
-
Select the Counter database
-
Under Edit a property select the Number property
-
Add 0 as the value
-
It should look like this π

-
Click Done