Table.ReplaceRows
Table.ReplaceRows(table as table, offset as number, count as number, rows as list) as table
在输入 table 中使用指定的 rows,从 offset 之后开始替换指定的行数 count。rows 参数是记录列表。
table: 要在其中执行替换的表。offset: 在进行替换之前要跳过的行数。count: 要替换的行数。rows: 要在由offset指定的位置插入到table中的行记录的列表。
示例:
从位置 1 开始,替换 3 行。
使用情况:
Table.ReplaceRows(Table.FromRecords({[Column1=1], [Column1=2], [Column1=3], [Column1=4], [Column1=5]}), 1, 3, {[Column1=6], [Column1=7]})
输出:
Table.FromRecords({[Column1=1],[Column1=6],[Column1=7],[Column1=5]})