Skip to content

The formula editor ​

Dynamic columns and aggregated fields share one editor. Open it from the data source designer:

  • + under a data source adds a dynamic column.
  • Σ adds an aggregated field.
  • f(x) next to an existing field edits it.

Designer with the Project costs data source and its two reference children

Full screen

The maximise icon in the dialog's title bar switches the editor to full screen, which gives long formulas more room.

A tour of the dialog ​

Dynamic column dialog: fields on the left, formula and preview on the right

AreaWhat it does
Fields (left)Every field you can use. Click one to insert it at the cursor. The footer shows the selected field's type, its token and its value in the previewed row.
Column name / typeThe name users see, and the type the result is converted to: Single Line of Text, Number, Date and Time or Yes/No.
FormulaThe expression. Fields appear as orange tokens such as {[Hours]}.
@ Insert fieldOpens field search at the cursor. Typing @ in the formula does the same.
SnippetsReady-made formulas to start from, see Snippets.
FormatTidies up the formula's layout.
ReferenceWhat you can use in a formula: DateTime, Interval, Rows, Math and, where they apply, the aggregation helpers.
Preview / ProblemsResults calculated as you type, and any errors or warnings.

Snippets and Reference menus ​

Snippets menu of a dynamic column

Reference menu listing the available globals

Preview: all rows or one row ​

All rows shows the result for every sample row, next to the fields the formula uses. One row steps through rows one at a time. It also shows the formula with that row's values filled in, which is the quickest way to see why a result is what it is.

One row view with the formula resolved for the current row

Problems ​

A red row means the formula failed for that row. The cell shows (empty) and the Message column explains why. Inspect row opens the row in the One row view.

Preview with failing rows

The Problems tab lists the same errors, plus warnings such as a field that doesn't exist. You can still save a formula with errors: failing rows just get an empty value. See Troubleshooting for the common messages.

Problems tab

Tokens are names, not values ​

When you click Cost in the Fields list, the editor shows {[Cost (Tasks)]}. The formula actually stores the field's internal name, which for a dynamic column looks like {[Tasks_column_37af16b8...]}. The editor displays the friendly name for you.

So:

  • Insert fields by clicking them (or with @) rather than typing the token by hand, especially for dynamic columns and aggregated fields.
  • Plain list columns use their SharePoint internal name, e.g. {[ProjectNo]}. Typing those by hand works.
  • In this guide, examples like {[Total spent]} mean "insert the Total spent field".

Sample rows ​

The preview uses the designer's preview rows (the top 10 by default; the Disable data preview limit switch in the designer removes the limit). For dynamic columns that's all you need. For aggregated fields it matters, see How aggregated fields work.