Foxcolab
Skip to content

Use formulas in a Foxcolab Notes database

Add a Formula property to a Notes database to calculate totals, days until a due date, overdue flags and progress from other properties, with examples you can copy.

Updated 2 min read

In short

Database formulas in Foxcolab Notes calculate a value for every row from its other properties. Add a Formula property, click its header, choose Edit formula and write an expression such as prop("Price") * prop("Quantity"). The editor checks the formula as you type, shows the result type and lists every property and function. Formulas recalculate on your device whenever the values they use change.

Key takeaways

  • Add a property of type Formula, then open its header menu and choose Edit formula.
  • Read other properties with prop("Name"), and click a property or function in the reference to insert it.
  • The editor shows the result type, or the error and where it is, before you save.
  • Formulas can reach into related pages, for example to count the done tasks of a project.
  • Renaming a property updates every formula that uses it.

Last reviewed 3 December 2026

Database formulas in Foxcolab Notes work out a value for every row from that row's other properties: a line total, the days left before a due date, a flag for overdue work. Add a property of type Formula and write the expression once. Notes fills in every row and recalculates when the values change. The calculation runs in your browser on your decrypted data, so your numbers stay end-to-end encrypted.

Add a formula#

  1. Add the property

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

  2. Open the editor

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

  3. Write the formula

    Type it in the box, for example prop("Price") * prop("Quantity"). Click a property or function in the reference on the left to insert it where your cursor is.

  4. Check and save

    Below the box, Notes shows the result type, such as Result: number, or what's wrong. Click Done, or press Cmd+Enter (Ctrl+Enter on Windows).

Rename the column from the same header menu so it says what it shows, such as Days left.

How formulas read your data#

  • prop("Name") gives the value of a property in the same row. The name must match exactly, including capitals.
  • Text goes in double quotes: "Done".
  • Use + - * / for arithmetic and < > == != for comparisons. Combine conditions with and, or and not.
  • Every function also works as a method, so upper(prop("Name")) and prop("Name").upper() are the same.

The reference panel lists every function under Logic, Math, Text, Dates, Lists, People and Other. Hover over one to see how to write it and an example. Use Search properties and functions to find one fast.

Formulas you can copy#

Change the property names to match your database:

What you wantFormula
Line totalprop("Price") * prop("Quantity")
Total with 18% tax, to two decimalsround(prop("Price") * prop("Quantity") * 1.18, 2)
Days until the due date (negative when late)dateBetween(prop("Due"), today(), "days")
Overdue flagif(empty(prop("Due")), "", if(dateBetween(prop("Due"), today(), "days") < 0 and not prop("Done"), "Overdue", ""))
A follow-up date a week laterdateAdd(prop("Due"), 7, "days")
Short date as textformatDate(prop("Due"), "MMM D")
Price bandifs(prop("Price") > 100, "High", prop("Price") > 10, "Medium", "Low")

If the database has a relation, a formula can look inside the linked pages. In list functions, current is the item being checked. With a Tasks relation whose pages have a Done checkbox and an Hours number:

Progress of a project, in percent·Text
if(empty(prop("Tasks")), 0, round(prop("Tasks").filter(current.prop("Done")).length() / prop("Tasks").length() * 100))
Hours across all linked tasks·Text
prop("Tasks").map(current.prop("Hours")).sum()

The empty check matters: without it, a project with no tasks divides by zero and shows an error. For simple totals and counts, a rollup needs no formula at all. See Connect databases with relations and rollups.

Fix common formula errors#

What you seeUsual causeFix
An error naming a propertyThe name in prop() doesn't match the columnInsert it from the Properties list instead of typing it
Division by zeroDividing by a count or number that can be 0Check for empty first, as in the progress example
Cannot compareComparing text with a numberConvert first with toNumber() or format()
The column is blankThe row's input is emptyCheck it with empty() and choose what to show

The error message also says where the problem is, as a character position, and Done stays off until it's fixed.

Renaming a property updates every formula that uses it, so you can tidy up column names without breaking anything. Anyone who can edit the database can add or change formulas.

Frequently asked questions

Why is my formula column empty for some rows?

The values it reads are empty in those rows. Date functions give an empty result for an empty date. Wrap the formula in if(empty(prop("Due")), "", …) to choose what shows instead.

Can a formula use values from another database?

Yes, through a relation. prop("Tasks") gives the linked pages, and current.prop("Done") reads a property of each one inside map, filter, find or count. A rollup works too.

Who can change a formula?

Anyone who can edit the database. Everyone with access sees the results, and the results are worked out in each person's browser.

How do I save a formula from the keyboard?

Press Cmd+Enter on a Mac or Ctrl+Enter on Windows. Esc closes the editor without saving.

Did this answer your question?

One click, no account needed.

Still need help?

Our support team can take it from here.

Jump to