List.Contains
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 a value is found in a list.
List.Contains(list as list, value as any, optional equationCriteria as any) as logical
| Argument | Description |
|---|---|
| list | The List to check. |
| value | The value to check for. |
| optional equationCriteria | An optional equation criteria value to control equality testing. |
List.Contains({1, 2, 3}, 2) equals true
List.Contains({1, 2, 3}, 4) equals false
Show: