Sintaxe
M
Table.Keys(table as table) as listParâmetros
- tabletableObrigatório
Tabela cujas chaves serão retornadas.
MtableWithKeys
Retorna
listExemplo
M
let
table = Table.FromRecords({
[Id = 1, Name = "Hello There"],
[Id = 2, Name = "Good Bye"]
}),
tableWithKeys = Table.AddKey(table, {"Id"}, true),
keys = Table.Keys(tableWithKeys)
in
keysResultado
M
{[Columns = {"Id"}, Primary = true]}Mais informações
- Subgrupo
- Table