List.Sum

About

Returns the sum from a list.

Syntax

List.Sum(list as list) as any  

Arguments

Argument Description
list The List to check.

Remarks

  • If the list is empty, an Expression.Error is thrown.

Examples

List.Sum({1, 2, 3}) equals 6  
List.Sum({#duration(0, 0, 0, 15), #duration(0, 0, 0, 30)}) equals #duration(0, 0, 0, 45)  
List.Sum({}) equals error