Skip to main content
SUM

Calculates the total sum of a specified numeric field within a range or partition

Updated over a month ago

Description

The SUM() function calculates the total sum of a specified numeric field within a range or partition. This is useful for aggregating data and calculating totals.

Syntax

SUM(number)

Output

numeric

Variables

  1. number: the numeric field to be summed.

Example

SUM(Value) Over (Partition by Group)

ID

Group

Value

SUM

1

A

10

45

2

A

20

45

3

A

15

45

4

B

30

70

5

B

40

70

Did this answer your question?