List.RemoveRange

 

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 list that removes count items starting at offset. The default count is 1.

List.RemoveRange(list as list, offset as number, optional count as nullable number) as list  

ArgumentDescription
listThe List to remove items from.
offsetThe index to start at.
optional countThe number of items to remove.
List.RemoveRange({"A", "B", "C", "D"}, 2) equals {"A", "B", "D"}  

List.RemoveRange({"A", "B", "C", "D"}, 1, 2) equals {"A", "D"}  

Show: