List.Sum
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns the sum from a list.
List.Sum(list as list) as any
| Argument | Description |
|---|---|
| list | The List to check. |
- If the list is empty, an Expression.Error is thrown.
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
Show: