Show Values As (Percentages and Differences)
Displays a value field as a calculation relative to other cells. Options are percent of grand total, percent of row total, percent of column total, percent of parent, difference from previous, and running total. The underlying aggregate stays available.
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: Channel. Columns: Year. Value: sum of Revenue shown as the raw value.
Expected behavior
Cells recompute to the selected relative view with percent formatting. The tooltip shows the raw aggregate. Difference-from-previous shows empty for the first column.
Planned API surface
value.showAsvalue.showAsBaseFieldvalue.showAsBaseItemgetPivotCellRawValue()Acceptance criteria
- Percentages in a row sum to 100% (within rounding) for percent of row total. (pending)
- The raw value stays retrievable via getPivotCellRawValue(). (pending)
- Running total follows the current column key order. (pending)
- Changing the mode does not trigger re-aggregation of source rows (verified by a call counter). (pending)