List.Repeat
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 repeats the contents of an input list count times.
List.Repeat(list as list, count as number) as list
| Argument | Description |
|---|---|
| list | The List to repeat. |
| count | The number of times to repeat. |
List.Repeat({1, 2, 3}, 3) equals {1, 2, 3, 1, 2, 3, 1, 2, 3}
Show: