Formula 2.0 expression language for computed properties

#16Formula 2.0 Expressions, Rollups & Footer Calculate
Computed properties with let/map/filter, cross-table Rollup aggregations, and table footer calculations.
In this article

Write typed, multi-line expressions with local variables

Nodo’s Formula 2.0 engine replaces brittle one-line formulas with a modern, statically type-checked expression language featuring an interactive multi-line editor, live autocomplete, and inline error diagnostics.

  • Reference current record fields with prop("Property Name") or pick them directly from autocomplete.
  • Bind intermediate calculations cleanly with let(name, value, expression) and lets(a, expr1, b, expr2, result) so complex logic stays readable and avoids repeated sub-expressions.
  • Branch cleanly with if(condition, yes, no) and multi-branch ifs(cond1, res1, cond2, res2, fallback).
Write typed, multi-line expressions with local variables
Write typed, multi-line expressions with local variables

Traverse relations, transform lists, and compute dates

Formula 2.0 works seamlessly with Nodo’s first-class Relation graph and array helpers—unlocking cross-database calculations that previously required helper rollups.

  • Read properties from related records using map() and filter(), such as prop("Tasks").filter(current.prop("Status") == "Done").length().
  • Compute schedules and SLA countdowns with date helpers:
  • now() and today() for current timestamps
  • dateBetween() for elapsed intervals
  • dateAdd() and dateSubtract() for shifting target dates
  • formatDate() for readable formatted strings
  • Aggregate and validate numeric lists with built-in math helpers:
  • sum_values() and average_values() for list totals and averages
  • min(), max(), and round() for bounds and precision
  • empty() guards for optional fields

Format visual badges, progress bars, and rich outputs

Formula results are not limited to plain monochrome text—format numbers and decorate status indicators directly from your expression.

  • Wrap text with style("At risk", "b", "red", "red_background") to render crisp color-coded status pills in Table, Board, List, and Gallery views.
  • Format numeric Formula outputs as currency, percentages, rounded decimals, horizontal progress bars, or circular progress rings in the property settings.
  • Filter, sort, group, and chart Formula 2.0 columns just like any native typed property.

Try it in Nodo

Illustration. Source properties feed a Formula 2.0 expression that updates every row automatically.
  1. Add a Formula property to a task database that already has Due date and Status fields.
  2. Write a Formula 2.0 expression using if() and prop("Status") to mark overdue open items.
  3. Change the Status of one overdue task to Done and verify that the computed badge updates immediately.

Expected result. Every row recalculates deterministically without manual edits, and the completed task leaves the overdue state.

Related articles