Compare commits

...
Author SHA1 Message Date
rusackasandClaude Opus 4.8 1441f1ce2c docs(pivot-table): scope additive-path and summary-override claims per reviewer feedback
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-29 04:15:11 -07:00
rusackasandClaude Opus 4.8 859cf93697 docs(pivot-table): clarify totals computation path per metric additivity
Additive metrics (SUM/COUNT/MIN/MAX) derive totals client-side from the
full-detail query rather than via a database grouping-sets query, and the
Table chart's Show summary row has its own Summary aggregation override
control, unlike the Pivot Table.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-27 22:59:21 -07:00
rusackasandClaude Sonnet 5 03aa92c8c7 docs(pivot-table): document DB-computed totals/subtotals behavior
PR #41184 removed the pivot table's client-side "Aggregation function"
control in favor of totals/subtotals computed by the database at each
rollup level, fixing correctness for non-additive metrics. That change
was only documented in UPDATING.md; add a note to the Pivot Table
tutorial section so users browsing the chart docs also see it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-27 21:02:34 -07:00
@@ -151,6 +151,20 @@ see some data!
You should see months in the rows and Department and Travel Class in the columns. Publish this chart
to your existing Tutorial Dashboard you created earlier.
:::note
Row and column totals/subtotals for the Pivot Table are correct even for non-additive metrics,
such as ratios (`SUM(a)/SUM(b)`), `COUNT_DISTINCT`, `AVG`, and percentiles, not just additive ones
like `SUM` or `COUNT`. Totals derive client-side, by reducing the same full-detail query results
used to build the table, only when every selected metric is additive; if any selected metric is
non-additive, Superset instead issues a database query at each total's own granularity for all
metrics, so the total reflects each metric's own definition evaluated at that level rather than an
incorrect combination of the displayed cells. Because of this, there's no separate "Aggregation
function" control for totals in the Pivot Table: a total always reflects the metric's own
definition. The Table chart's **Show summary** row is different: its **Summary aggregation**
control can override a simple metric's own aggregation (to Sum or Average) for the summary row
only — metrics built from custom SQL keep their own aggregation regardless.
:::
### Line Chart
In this section, we are going to create a line chart to understand the average price of a ticket by