Table.ReplaceRows

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns a table where the rows beginning at an offset and continuing for count are replaced with the provided rows.

Table.ReplaceRows(table as table, offset as number, count as number, rows as list) as table  

ArgumentDescription
tableThe Table to modify.
offsetThe beginning row index.
countThe number of rows to replace.
rowsThe List of replacement rows.
  • Table.ReplaceRows is similar to List.ReplaceRange but requires a table as input.
Table.ReplaceRows(Table.FromRecords({[Column1=1], [Column1=2], [Column1=3], [Column1=4], [Column1=5]}), 1, 3, {[Column1=6], [Column1=7]})  

Column1
1
6
7
5
Show: