Skip to content
Report-Designer

Formulas

Calculate values from fields, parameters, running totals and other formulas.

Open Formulas and click the plus button beside Formulas on the left. Enter a name and a C# expression. Type { for suggestions. The designer checks formulas as you type. Click Check formulas to check them all.

  • {Amount} reads a column from the current data set.
  • {?FromDate} reads a report parameter.
  • {@AmountWithVat} reads a formula defined above the current one.
  • {#GrandTotal} reads a running total.
  • {^Payee} reads a main-record field from inside a table.

You can multiply an amount with {Amount} * 1.12m, write it in words with ToWords({Amount}), or format a date with ToText({InvoiceDate}, "MMM d, yyyy").

Built-in values

Use PageNumber and TotalPages for a page label such as "Page " + PageNumber + " of " + TotalPages. Other values include RecordNumber, PrintDate, CopyLabel, CopyNumber, DocumentNumber and DocumentCount. For shared company values, see Report projects.

Running totals

A running total can sum, count, average, or find the minimum or maximum. Under Reset, choose On each page or Never (whole report). For totals within groups of rows, use table aggregates.