Sintaxe
M
Table.FuzzyGroup(table as table, key as any, aggregatedColumns as list, optional options as nullable record) as tableParâmetros
- tabletableObrigatório
Tabela de entrada.
MTable.FromRecords({...})- keyanyObrigatório
Coluna cujos valores serão agrupados por correspondência difusa.
M"Location"- aggregatedColumnslistObrigatório
Colunas agregadas a criar para cada grupo.
M{"Count", each Table.RowCount(_)}- optionsnullable recordOpcional
Registro de opções que define como comparar as chaves.
M[IgnoreCase = true, IgnoreSpace = true]
Retorna
tableExemplo
M
Table.FuzzyGroup(
Table.FromRecords(
{
[EmployeeID = 1, Location = "Seattle"],
[EmployeeID = 2, Location = "seattl"],
[EmployeeID = 3, Location = "Vancouver"],
[EmployeeID = 4, Location = "Seatle"],
[EmployeeID = 5, Location = "vancover"],
[EmployeeID = 6, Location = "Seattle"],
[EmployeeID = 7, Location = "Vancouver"]
},
type table [EmployeeID = nullable number, Location = nullable text]
),
"Location",
{"Count", each Table.RowCount(_)},
[IgnoreCase = true, IgnoreSpace = true]
)Resultado
M
Table.FromRecords({
[Location = "Seattle", Count = 4],
[Location = "Vancouver", Count = 3]
})Mais informações
- Subgrupo
- Table