Skip to content

docs: document totals for metric-only table calculations#774

Closed
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/1cd0e2a1
Closed

docs: document totals for metric-only table calculations#774
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/1cd0e2a1

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented Jun 5, 2026

Summary

Update the table chart reference to reflect that grand totals, column totals, row totals, and subtotals are now computed for table calculations whose value depends only on aggregated metrics.

Changes

  • Remove the outdated "Totals are not calculated for table calculations" callout on the table chart reference page.
  • Add a "Totals for table calculations" subsection that explains when a table calculation's total is computed (metric-only SQL or formula calcs with no aggregate, window, row, pivot, or template helpers) and when it stays blank, with short SQL and formula examples.

Context

Triggered by lightdash/lightdash#23891, which extends the v2 calculate-total endpoint so metric-only SQL and formula table calculations are kept in the grand, column, row, and subtotal queries and re-evaluated on the aggregated metric row. Unsafe calcs (template/window calcs, dimension references, formula aggregates, row/pivot/total helper functions, raw OVER (...) clauses) are left blank.

cc @ZeRego

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented Jun 5, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lightdash 🟢 Ready View Preview Jun 5, 2026, 12:08 PM

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

🤖 Documentation Bot

Status

⚠️ 1 broken link needs manual attention


🔗 Broken Links (Manual Fix Required)

Click to view details
   📄 timezones-draft.mdx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant