List.MatchesAny
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 any item in a list meets a condition.
List.MatchesAny(list as list, condition as Function) as logical
| Argument | Description |
|---|---|
| list | The List to check. |
| condition | The condition to qualify against. |
List.MatchesAny({2, 4, 6}, each Number.Mod(_, 2) = 0) equals true
List.MatchesAny({1, 3, 5}, each Number.Mod(_, 2) = 0) equals false
Show: