Table of contents
TOC
Collapse the table of content
Expand the table of content

List.Sum

Owen Duncan|Last Updated: 4/19/2018

About

Returns the sum from a list.

List.Sum(list as list) as any  

Arguments

ArgumentDescription
listThe 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  
© 2018 Microsoft