List.MatchesAll

 

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 all items in a list meet a condition.

List.MatchesAll(list as list, condition as Function) as logical  

ArgumentDescription
listThe List to check.
conditionThe condition to qualify against.
List.MatchesAll({2, 4, 6}, each Number.Mod(_,2) = 0) equals true  

List.MatchesAll({2, 4, 5}, each Number.Mod(_,2) = 0) equals false  

Show: