Table.MatchesAllRows
Syntaxis
Table.MatchesAllRows(table as table, condition as function) as logical
Over
Geeft aan of alle rijen in de table
overeenkomen met de opgegeven condition
. Retourneert true
als alle rijen overeenkomen, zo niet, false
.
Voorbeeld 1
Bepaal of alle rijwaarden in kolom [a] zich zelfs in de tabel bevinden.
Gebruik
Table.MatchesAllRows(
Table.FromRecords({
[a = 2, b = 4],
[a = 6, b = 8]
}),
each Number.Mod([a], 2) = 0
)
uitvoer
true
Voorbeeld 2
Zoeken of alle rijwaarden [a = 1, b = 2] zijn, in de tabel ({[a = 1, b = 2], [a = 3, b = 4]})
.
Gebruik
Table.MatchesAllRows(
Table.FromRecords({
[a = 1, b = 2],
[a = -3, b = 4]
}),
each _ = [a = 1, b = 2]
)
uitvoer
false