...
In the following example you can see the effect of having the sequence being reset to 1 every time the value in the "group" field changes.
The data typically arrives in an ordered fashion although that is not a requirement as long as identical values are grouped together in the data stream it will work fine.
Options
Here are the options for the step:
...