Table.Keys
Table.Keys(table as table) as list
Retorna as chaves da tabela especificada.
Obtenha a lista de chaves de uma tabela.
Usage
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
keys
Saída
{[Columns = {"Id"}, Primary = true]}