Skip to main content

Expression Engine

Expression engine

The expression engine lets you define calculated fields and conditional values anywhere a data property is accepted in Report Forge.

Where expressions are used

  • Calculated column in a tablix.
  • Conditional colour or visibility rule.
  • KPI tile value.
  • Text block with dynamic content.
  • Chart series value.

Expression syntax

Expressions use a simple formula syntax similar to spreadsheet formulas. Each expression returns a typed value (text, number, date, or boolean).

[FieldName]           -- reference a bound field
123 -- numeric literal
"text" -- string literal
TODAY() -- function call
[ActualFinish] - [BaselineFinish] -- arithmetic
IF([Float] < 0, "Critical", "Float") -- conditional

Common functions

FunctionReturnsExample
IF(cond, a, b)a or bIF([Float]<0,"Critical","OK")
DATEDIFF(d1,d2,"d")NumberDATEDIFF([Start],[Finish],"d")
TODAY()DateTODAY()
ROUND(n, d)NumberROUND([Progress],1)
CONCAT(a, b)TextCONCAT([ID]," - ",[Name])
ISNULL(a, b)a or bISNULL([ActualStart],[PlannedStart])
ABS(n)NumberABS([Variance])
SUM([Field])NumberUsed in aggregated contexts
COUNT([Field])NumberUsed in aggregated contexts
FORMATDATE(d,"fmt")TextFORMATDATE([Start],"dd MMM yy")

Editing an expression

  1. Open the Properties panel for a component.
  2. Select any property that accepts an expression.
  3. Click the fx icon to open the expression editor.
  4. Type or build the expression. The editor shows a live preview.
  5. Confirm. If the expression is invalid, an inline error appears.

Full function reference

For the complete list of supported functions with parameters and examples, see Expression Reference.