List.ContainsAll
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 true if all items in values are found in a list.
List.ContainsAll(list as list, values as list,optional equationCriteria as any) as logical
| Argument | Description |
|---|---|
| list | The List to check. |
| values | The list of values to check for. |
| optional equationCriteria | An optional equation criteria value to control equality comparisons. For more information about equality comparisons, see Parameter Values. |
List.ContainsAll({1, 2, 3}, {2, 3}) equals true
List.ContainsAll({1, 2, 3}, {2, 4}) equals false
Show: