List.InsertRange
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.
Inserts items from values at the given index in the input list.
List.InsertRange(list as list, offset as number, values as list) as list
| Argument | Description |
|---|---|
| list | The List to modify. |
| offset | The index to insert at. |
| values | The values to insert. |
List.InsertRange({"A", "B", "D"}, 2, {"C"}) equals {"A", "B", "C", "D"}
Show: