SUM

    Aggregate functions

    Syntax

    SUM( value )
    

    Description

    Returns the sum of all expression values. Applicable to numeric data types only.

    Argument types:

    • valueNumber

    Return type: Same type as (value)

    Examples

    SUM([Profit])
    

    Data source support

    Materialized Dataset, ClickHouse 1.1, Microsoft SQL Server 2017 (14.0), MySQL 5.6, PostgreSQL 9.3