How to add multiple rows to a table with FormulaMap, with a value that increases by +1 in each row?

One way to do it strictly as you put it is:

Sequence(1, [Multiselect Control].Count())).FormulaMap(
  AddRow([Order Table],
    [Order Table].[Order #],max([Order #])+CurrentValue,
    [Col1],[Multiselect Control].Nth(CurrentValue)
  )
)

See this:


But I’d probably use a column formula to guarantee unique order numbers: [Order Table].[Order #] = thisRow.RowId()

2 Likes