Skip to content

PivotResult

Computed result of the pivot transformation.

Produced internally by the pivot engine after processing source rows through the configured rowGroupFields, columnGroupFields, and valueFields.

PropertyTypeDescription
rowsPivotRow[]Hierarchical pivot rows (group headers + leaf rows).
columnKeysstring[]Unique column keys derived from columnGroupFields values.
totalsRecord<string, number>Per-column totals (keyed by column key). Present when showTotals is enabled.
grandTotalnumberGrand total across all columns. Present when showGrandTotal is enabled.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt