List.Modes
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 all items that appear with the same maximum frequency.
List.Modes(list as list, optional equationCriteria as any)as list
| Argument | Description |
|---|---|
| list | The List to check. |
| optional equationCriteria | Controls the sort order. For more information about equality comparisons, see Parameter Values. |
- If the list is empty, an Expression.Error is thrown.
List.Modes({"A", 1, 4, 5, 2, "B", 3, 5, 5, "A", 4, 4, "A"}) equals {"A", 4, 5}
Show: