List.Average

 

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 an average value from a list in the datatype of the values in the list.

List.Average(list as list) as any  

ArgumentDescription
listThe List to check.
  • If the list is empty, an Expression.Error is thrown.
List.Average({1, 2, 3}) equals 2  

List.Average({#duration(0, 0, 30, 0), #duration(0, 0, 40, 0)}) equals #duration(0, 0, 35, 0)  

List.Average({#date(2011,1,1), #date(2011,1,2), #date(2011,1,3)})  equals #datetime(2011,1,2)  

List.Average({}) equals null  

Show: