List.RemoveMatchingItems

 

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.

Removes all occurrences of the given values in the list.

List.RemoveMatchingItems(list as list, values as list, optional equationCriteria as any) as list  

ArgumentDescription
listThe List to modify.
valuesThe list of values to remove.
optional equationCriteriaAn optional equation criteria value to control equality comparison. For more information about the equationCriteria, see Parameter Values.
List.RemoveMatchingItems ({"A", "B", "C", "B", "A"}, {"A", "C"}) equals {"B", "B"}  

Show: