Where to write formulas in Runway
There are four primary places where you’ll interact with formulas in Runway. Each has its own context depending on whether you’re working with standalone drivers, databases, or HRIS data. Let’s go through them one by one.#1 Driver table blocks
When working in a driver table block on a page or in a model, you’ll often write or update formulas for the drivers you see there. Keep in mind that a driver table block can contain drivers created directly in the block, pulled from other driver table blocks, or drivers originating from databases. Given drivers are portable, making edits to the formula in one place will change it in all places it’s used. There are a few ways to access and edit a driver’s formulas:-
Show formulas as columns.
Use the Customize menu to show the actuals and forecast formula columns, or press:
-
Option
+Shift
+A
to toggle the actuals formula column -
Option
+Shift
+F
to toggle the forecast formula column More on customizing columns →
-
-
Click the formula button next to the driver name.
- Open the driver’s details pane. This gives you more room to work and context on the driver. Learn more →
#2 Driver default column formulas in a database
Most databases in Runway—whether they pull data from an integration, reference another database, or are built manually—contain one or more driver columns. These columns might be:- Auto-generated through database configuration, or
- Manually added to extend the database with additional calculated drivers. Learn how →
-
When displaying a driver column as a time series, click the ƒ button to open the formula editor.
-
When displaying a column as a single value, the same ƒ button will appear.
#3 Row-level driver formulas in a database
As noted earlier, all rows in a driver column inherit the default column-level formulas by default. However, you can override the formula for specific rows if you need custom logic for a particular segment. You can do this in two ways:- When viewing a driver column as a time series, click directly into any row’s (segment) formula cell to edit it.
-
When using the full time series view of a database, you can override the formula for any segment inline. This is especially useful for scanning and editing multiple overrides in one place.
Formula overrides at the row level will take precedence over the column default for that specific row only. You can always clear the override to revert to the inherited column formula.
#4 Field column formulas in an HRIS database
HRIS databases behave differently from standard Runway databases. One key distinction is that you can only define formulas at the column level—row-level formula overrides are not currently supported. This means the logic you define for a field column will apply uniformly across all employees in the database. To learn more about how HRIS databases are structured and how they differ from other databases in Runway, read this guide.Forecast v.s. actuals formulas
Now that we’ve explored the different places where you can interact with formulas in Runway, let’s look at another key concept: the distinction between forecast and actuals formulas. Every driver in Runway supports two formulas:- Actuals formula — used for all months up to and including your last close date.
- Forecast formula — used for all months after the last close.