# Add value fields changing sequence

## ![](/files/VGJa9UxeVgiaNkB1KcKJ) Add value fields changing sequence

### Description <a href="#description" id="description"></a>

The Add Fields Changing Sequence transform simply adds a sequence value which resets each time a value changes in the list of specified fields.

### Supported Engines <a href="#supported_engines" id="supported_engines"></a>

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | X            |
| Flink      | X            |
| Dataflow   | X            |

### Options

Here are the options for the transform:

* transform name : the name of the transform, needs to be unique in a pipeline
* Result field: the name of the output field, the sequence
* Start at value: the number to start at each time
* Increment by: the value to increase at each row in the same group
* Init sequence if value of following fields change: you can specify a list of fields here. If a value in one or more of these fields changes compared to the previous rows, the sequence will be reset to the start value.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/addfieldschangesequence.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
