Table.InsertRows
Sözdizimi
Table.InsertRows(table as table, offset as number, rows as list) as table
Hakkında
Belirtilen konum offset
'de table
'e eklenen rows
satır listesini içeren bir tablo döndürür. Eklenecek satırdaki her sütun, tablonun sütun türleriyle eşleşmelidir.
Örnek 1
Satırı 1 konumundaki tabloya ekleyin.
Kullanım
Table.InsertRows(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"]
}),
1,
{[CustomerID = 3, Name = "Paul", Phone = "543-7890"]}
)
çıkış
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"]
})
Örnek 2
Tabloya 1 konumunda iki satır ekleyin.
Kullanım
Table.InsertRows(
Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]}),
1,
{
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"]
}
)
Çıkış
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"]
})