List.Accumulate

 

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.

Accumulates a result from the list. Starting from the initial value seed this function applies the accumulator function and returns the final result.

List.Accumulate(list as list, seed as any, accumulator as function)as any  

ArgumentDescription
listThe List to check.
seedThe initial value seed.
accumulatorThe value accumulator function.
// This accumulates the sum of the numbers in the list provided.  
List.Accumulate({1, 2, 3, 4, 5}, 0, (state, current) => state + current) equals 15  

Show: