List.Mode

 

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 item that appears most commonly in a list.

List.Mode(list as list, optional equationCriteria as any)as any  

ArgumentDescription
listThe List to check.
optional equationCriteriaControls the sort order. For more information about equality comparisons, see Parameter Values.
  • If more than 1 item appears with the same maximum frequency, the last item in the first appearance order is chosen.

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

List.Mode({"A", 1, 4, 5, 2, "B", 3, 5, 5, 4, 4}) equals 5  

Show: