Footer rows and totals
Totals and aggregates under the table. Tables in the DocStudio designer user guide.
Footer rows appear under the last data row. They are used for totals.
Add a total
- Open Footer rows and click Add footer row.
- In the row click Add footer cell and set the Text to
Subtotal. Set Columns spanned to 2 so it covers the first two columns. - Click Add footer cell again. Choose Calculation.
- Choose Aggregate
sumof columnTotaland click Use aggregate.
The footer cell now shows the sum of the Total column for all rows.
Cell kinds
| Kind | Result |
|---|---|
| Text | Fixed text |
| Calculation | Any expression. Inside a table footer $rows is the list of rows, so sum over $rows adds a value of each row |
Spans and alignment
Columns spanned merges cells to the right. The total span of a row never exceeds the number of columns. Alignment (start, center, end) applies per cell.
Aggregates
sum, avg, count, min and max are available for a column. The preview computes them over every row of the sample, not only the first 50.
Limits
- A footer is drawn once, after the last row.
- Footer rows are bold by default.
- A table has up to 100 footer rows.