SUM (window)
Function SUM
is also available as an aggregate function.
Syntax
SUM( value [ TOTAL | WITHIN ... | AMONG ... ] [ BEFORE FILTER BY ... ] )
Description
Returns the sum of all expression values. Applicable to numeric data types only.
Argument types:
value
—Number
Return type: Same type as (value
)
Examples
SUM([Profit] TOTAL)
SUM([Profit] WITHIN [Date])
SUM([Profit] AMONG [Date])
Data source support
Materialized Dataset
, ClickHouse 1.1
, Microsoft SQL Server 2017 (14.0)
, MySQL 5.6
, Oracle Database 12c (12.1)
, PostgreSQL 9.3
.