List.Repeat
A list repeated a number of times, end to end.
Group: List. Power Query M has it too: a query that uses it is written as in Power BI.
Syntax
List.Repeat(list as list, count as number) as list
| Parameter | Type | Description |
|---|---|---|
list | list | The items to repeat. |
count | number | How many times. |
Returns
list. The items, count times over.
Examples
Sizes for two products
List.Repeat({"S", "M", "L"}, 2)
{"S", "M", "L", "S", "M", "L"}