OpenBI Docs Buy

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
ParameterTypeDescription
listlistThe items to repeat.
countnumberHow 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"}

List.Combine, Text.Repeat, Table.Repeat.

Last updated · OpenBI Studio 0.3.79