Skip to content
Discussion options

You must be logged in to vote

Hi @pmilsomadaxa! I'm Dosu and I'm helping the Apache Superset team.

No, correct subtotaling of non-additive metrics (ratios/percentages) does not work in Superset 6.0.0 — this is an unresolved architectural limitation that persists across all current versions.

Root cause: Superset's backend post-processing receives pre-aggregated SQL results (your Margin % is already calculated per row) and then treats all numeric columns as additive when computing subtotals. It sums the displayed percentages rather than recalculating SUM(revenue_amt - calc_cogs_amt) / NULLIF(SUM(revenue_amt), 0) at the subtotal grouping level [1].

Status of the references you found:

  • PR #34592 proposes a multi-query ar…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pmilsomadaxa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant