Skip to content

Sum

Aggregation

Sum(column)

Adds the column over the rows in the current filter context (SQL SUM). NULLs are skipped; over zero rows the result is blank (NULL) — wrap in Coalesce([Measure], 0) when you want zeros.

  • Any how much in total question — revenue, quantity shipped, cost, hours logged.
  • As the additive base other measures build on: ratios (Divide), running totals (YTD, RollingSum), and filtered variants (Calculate) all accept it.
Revenue := Sum(Sales.Amount)
  • The argument is a column, not a measure — Sum([Revenue]) fails with SQX013; a measure already aggregates.