queries:functions:sum

sum

The sum function is an aggregation function, it rolls all rows together and returns the total sum of the values submitted in the parameter.

Return Type Number
Aggregates Yes
Flags None

Parameters

Parameters: sum(value)

Name Type Description
value Number The number which is supposed to be summed.

Example Queries

Draws a number representing the total seconds all users spent on all pages:

draw number using sum(ended - captured) from @views

IN THIS ARTICLE