Table.ReplaceKeys
Table.ReplaceKeys(table as table, keys as list) as table
Lecseréli a megadott tábla kulcsait.
Cserélje le a tábla meglévő kulcsait.
Használat
let
table = Table.FromRecords({
[Id = 1, Name = "Hello There"],
[Id = 2, Name = "Good Bye"]
}),
tableWithKeys = Table.AddKey(table, {"Id"}, true),
resultTable = Table.ReplaceKeys(tableWithKeys, {[Columns = {"Id"}, Primary = false]})
in
resultTable
Hozam
Table.FromRecords({
[Id = 1, Name = "Hello There"],
[Id = 2, Name = "Good Bye"]
})