Table.MatchesAnyRows
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 of the rows in a table meet a condition.
Table.MatchesAnyRows( table as table, condition as function) as logical
| Argument | Description |
|---|---|
| table | The Table to check. |
| condition | The condition to match. |
- Table.MatchesAnyRows is similar to List.MatchesAny but requires a table argument.
Table.MatchesAnyRows(Table.FromRecords (
{
[OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0],
[OrderID = 2, CustomerID = 1, Item = "1 lb. worms", Price = 5.0],
[OrderID = 3, CustomerID = 2, Item = "Fishing net", Price = 25.0],
[OrderID = 4, CustomerID = 3, Item = "Fish tazer", Price = 200.0],
[OrderID = 5, CustomerID = 3, Item = "Bandaids", Price = 2.0],
[OrderID = 6, CustomerID = 1, Item = "Tackle box", Price = 20.0]
}), each Number.Mod([CustomerID], 3) = 0)
equals true
Show: