the row type
Optional columnThe fields whose values become columns, top first. Several fields form a multi-row header. Default [] (totals only).
Optional columnA total column behind every column group (e.g. "2026 Total" behind its quarters); the group gets a toggle and, when collapsed, shows only its total. Default: true with two or more column fields.
Optional emptyThe label of empty keys (null, undefined, "") – rows and columns. Default "(empty)".
Optional emptyThe text of a cell without data (the value stays undefined, not 0). Default "".
Optional expandedExpanded row groups: true (default), false, open levels as a number (0 = all closed) or a function per group.
Optional maxThe maximum number of column keys (of the lowest column level). More keys: the first ones are shown, a warning is logged and PivotResult.truncated is true – total column, subtotal columns and total row still count all rows. Default 1000.
The row levels, top first. Several levels form a hierarchy with subtotals. An empty list shows one total row.
Optional subtotalsShow the aggregates in the group rows (subtotals). Default true.
Optional totalThe total column(s) on the right: "fixed" (default, fixed on the right), true (last columns, scrolled) or false.
Optional totalThe word for totals: header of the total column, label of the total row, suffix of subtotal columns. Default "Total".
Optional totalThe total row in the footer. Default true.
The aggregated values (at least one): "umsatz" (sum) or PivotValueIf. With several values every column key gets one column per value.
What a pivot table shows: the row fields (grouped like a row grouping), the column fields (their values become columns) and the values (aggregated per row × column), plus subtotals and totals. Used by PivotFactory.createTableModel, pivotRows and TableApi.setPivotConfig.
Fields have the form of a row grouping level (RowGroupField): a property path, a function (e.g. the quarter of a date) or RowGroupFieldIf with
label,formatandorder–groupByof a row grouping works asrowFields.Example
Since
1.1.94