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 palette | Preparation |
| Where it appears | Modeling and Analysis |
Inputs
| Port | What connects |
|---|---|
| table | The table to order. |
Outputs
| Port | What connects |
|---|---|
| table | The table with the calculated columns. |
What to configure
| Option | What for |
|---|---|
| Group | The sequence starts over at each value of the group, for example at each customer. |
| Order | The field that defines the order within the group. |
| Calculation | Position, previous or next, running total, first or last. |
| Keep only the first or the last | Removes 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".