Skip to main content

Overview

Formulas let you create computed columns that automatically calculate values based on other columns. If you’ve used Excel or Google Sheets, the syntax will feel familiar.

Creating a Formula Column

  1. Click Add Column in your dataset
  2. Select Formula
  3. Enter your formula expression
  4. Name the new column
  5. Click Create

Syntax Basics

Referencing Columns

Wrap column names in double curly braces:
Column names are case-sensitive and should match exactly:

Operators

Functions Reference

Text Functions

Convert text to uppercase.
Convert text to lowercase.
Remove leading and trailing whitespace.
Join multiple values together.
Get the first n characters.
Get the last n characters.
Extract a substring.
Get the length of text.
Replace occurrences of a string.
Find the position of a substring within text. Returns the 1-based index of the first occurrence, or 0 if not found.

Math Functions

Add multiple values.
Calculate the average.
Find the minimum value.
Find the maximum value.
Round to specified decimal places.
Round down to nearest integer.
Round up to nearest integer.
Get absolute value.

Logic Functions

Conditional logic.
Returns true if all conditions are true.
Returns true if any condition is true.
Negate a boolean value.
Check if a value is null or empty.
Return the first non-null value.

Date Functions

Current date and time.
Current date (no time).
Extract the year from a date.
Extract the month (1-12).
Extract the day of month (1-31).
Calculate difference between dates.
Units: “years”, “months”, “days”, “hours”, “minutes”
Add time to a date.

Examples

Calculate Age

Full Name with Title

Email Domain

Order Total with Tax

Status Label

Error Handling

Formulas handle errors gracefully:
Use COALESCE() to provide default values when dealing with potentially null columns.