Table.RemoveMatchingRows
Removes all occurrences of the specified rows from the table.
Syntax
Table.RemoveMatchingRows(
table as table,
rows as list,
optional equationCriteria as any
) as table
Remarks
Removes all occurrences of the specified rows from the table. An optional parameter equationCriteria may be specified to control the comparison between the rows of the table.
Examples
Example #1
Remove any rows where [a = 1] from the table <code>({[a = 1, b = 2], [a = 3, b = 4], [a = 1, b = 6]})</code>.
Table.RemoveMatchingRows(
Table.FromRecords({
[a = 1, b = 2],
[a = 3, b = 4],
[a = 1, b = 6]
}),
{[a = 1]},
"a"
)
Result:
Table.FromRecords({[a = 3, b = 4]})
Category
Table.Membership