Font Size:
Ask Joget AI

Rollup Formatter

Introduction

Rollup is a column formatter that works numbers out from the records of another form or list linked to each row: a KPI's weekly readings, a purchase order's lines, a customer's orders. It gives the points for a Sparkline, the latest value or its change for a Stat, or a total, an average, or a count. No number has to be typed into the row's own record.

Rollup comes with List Studio, and needs no install of its own. It is made for List Studio's slots: in another list template, the column shows its result as plain text.

Set it up

  1. Open the list in the List Builder and click Layout.
  2. Drag the column the records link to, usually ID, from the palette's Columns onto a Stat or a Sparkline slot. To show several numbers from the same records, such as a latest value, its change, and a trend, drop the column once into each slot: each drop is a column of the list with a formatter of its own.
  3. Click the slot. In its panel, open the page named after the column and Formatter, for example, Total · Formatter, and choose Rollup in Formatter.
  4. Fill in its settings (see Configure Rollup properties). Under them, a preview shows what the column reads and gives for the row on the canvas.
  5. Click Apply Change, then save the list.

The same settings are on the column's own Formatter page in the List Builder's Design view, without the preview.

Configure Rollup properties

Fields to configure:

  • From: Where the records are.
    • Form: A form's records.
    • List: A list's records, read through its data source. Use it for records a form cannot provide, such as a JDBC query's or an API's (see Records from a list).
  • Form: The form whose records hold the values, for example Order line (mandatory).
  • Linked by field: The field that holds the row's value, for example po, which holds the purchase order's ID (mandatory).
  • Date field: The field that puts the records in order and in periods. By default, it is dateCreated, when each record was created. A field of your own must hold dates that start yyyy-MM-dd; with Per set to Record, a field that holds numbers also works.
  • Value field: The field that holds the number, for example amount. Leave it empty to count each record as 1.
  • List, Linked by column, Date column and Value column: The same, when From is List: the list, and the columns of its data source. List and Linked by column are mandatory.
  • Per: What makes one point.
    • Record: Each record is a point, in date order.
    • Day, Week and Month: Each period is a point, up to the current one. Weeks start on Monday.
  • Each period: How a period's records make its value: Sum, Average, Last, or Count. A period with no records is 0 for Sum and Count, and is left out for Average and Last. Only with Day, Week, or Month.
  • Up to: The last period read. Only with Day, Week, or Month.
    • This period: The current one, so far.
    • The last full period: The one before it, so a week isn't low only because it isn't over.
  • Show: What the column gives.
    • Each point: The points, oldest first, for a Sparkline, for example 99;110;115;121;128.
    • Latest: The last point, for a Stat.
    • Change: How much the last point differs from the one before, for example +7.
    • Change %: The same as a percentage, for example +5.8%. It gives nothing when the point before is 0.
    • Total, Average and Count: One number over all the records read, whatever Per and Points say. Total and Average leave out records with no number.
  • Points: How many points are read, from 2 to 60. 7 by default. Only with Each point, Latest, Change, and Change %.

A record whose date or number cannot be read is left out of the points, and the preview says how many were.

Records from a list

With From set to List, Rollup reads the records through the list's data source: a form's, a JDBC query's, or another data source plugin's.

  • The column choices are the data source's own columns, for example, a query's measure, week and value.
  • The records are read with one filter, on the link column. The data source's own settings apply, such as a form data source's extra condition or a JDBC query's SQL. The list's filters don't.
  • The values are the data source's, before the list's own formatters.
  • A Date column may hold dates, or text that starts yyyy-MM-dd. Without one, records are taken in the data source's own order, and Day, Week, and Month find no dates.

The preview

In Layout, a preview under the settings shows what they read for the row on the canvas, and follows each change before you apply it.

  • Row 1: 10 records in Demo: KPI readings (SQL): How many records the row links to, and where.
  • A table of the points: each period with its number of records and its value, or each record with its date and value. The current period is marked so far, and a period left out shows –.
  • Notes on the records not read, for example, 5 earlier, not read, or how many had no date or no number.
  • Gives: The column's result for that row, as the slot will show it.

To try another row, move the canvas to it with the arrows beside Row 1 of 6.

How it looks

In the demo app's KPI cards, each card's three numbers are Rollup columns on the KPI's ID, from its weekly readings: the large figure is a Stat with Show set to Latest, the chip a Stat with Variant set to Change (▲ or ▼ and how much) and Show set to Change %, and the trend a Sparkline with Show set to Each point.

A Rollup column's value is its result everywhere the design reads one:

  • Slots: They show the result, on the canvas too.
  • Conditions: A condition on the slot, picked under Shown, tests the result, for example, a change below 0 (see List Studio Conditions).
  • Sort by: It leaves the column out, since the list would sort by the ID the column is on.

Tips and limitations

  • One read per page: The rows on a page read their records together, in one query, which the columns reading the same records by the same link share.
  • 10,000 records: When a page's rows link to more than 10,000 records together, each row is read alone, up to its newest 10,000 by date. The preview says when a row has more than that.
  • Field and column names: A form's field IDs and a data source's column names, made of letters, digits, and underscores (a column name may also have dots and dollar signs). Anything else reads as no records.
  • Other templates: In a list that doesn't use List Studio, the column shows the result as text, with Each point as numbers separated by semicolons.
  • AI Composer: It can bind a Stat or a Sparkline to a column, but it can't set a column's formatter. Set Rollup yourself.

Related documentation

Created by Damien Ng Last modified by Debanraj Ravindran on Nov 26, 2026