Skip to content

Sequence node ​

Calculates values that depend on the order of the rows: position, previous and next, running total, first and last of each group.

Group in the palettePreparation
Where it appearsModeling and Analysis

Inputs ​

PortWhat connects
tableThe table to order.

Outputs ​

PortWhat connects
tableThe table with the calculated columns.

What to configure ​

OptionWhat for
GroupThe sequence starts over at each value of the group, for example at each customer.
OrderThe field that defines the order within the group.
CalculationPosition, previous or next, running total, first or last.
Keep only the first or the lastRemoves repeats, leaving one row per group.

Things to keep in mind ​

  • It's the node for "change against the previous month" and for "each customer's last purchase".

See also ​

LumeDB © Keon Analytics