Drill-Down to Underlying Rows
Double-clicking or pressing a key on any pivot cell, including totals, opens the source rows that make up that aggregate. The rows open in a detail panel, a modal grid, or a callback for custom routing. This builds trust in the numbers and supports investigation.
Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Rows: Country. Columns: Quarter. Value: sum of Revenue. Drill-down target is the side panel.
Expected behavior
Activating a cell opens the drill-down with exactly the contributing rows and a header that summarises the cell's key path. Summing the drilled rows reproduces the cell value. When the limit is reached, a truncation notice and an export option appear.
Planned API surface
pivot.drillDown.enabledpivot.drillDown.targetpivot.drillDown.columnspivot.drillDown.maxRowsgetPivotCellSourceRows()onPivotDrillDownAcceptance criteria
- The drilled row set equals the leaf rows that match all row and column keys of the cell, after source filters. (pending)
- Drill-down on a grand total returns all filtered rows (up to maxRows). (pending)
- The onPivotDrillDown payload includes the key path, value field and row count. (pending)
- The callback target can cancel default UI behavior. (pending)
- Closing the drill-down returns focus to the originating cell. (pending)