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  

ArgumentDescription
listThe List to modify.
offsetThe index to insert at.
valuesThe values to insert.
List.InsertRange({"A", "B", "D"}, 2, {"C"}) equals {"A", "B", "C", "D"}  

Show: