Add a sliceDataset transformation to a dataflow either in the dataflow editor, or directly in the JSON dataflow definition file. The parameters you specify are the same for both methods.
To add a sliceDataset transformation in the dataflow editor, click
.
To add a sliceDataset transformation in the JSON definition file, add a node and set the
action attribute to sliceDataset.
This table describes the input parameters.
| Parameter | Required? | Value |
|---|---|---|
| source | Yes | Node in the dataflow definition file that identifies the dataset that you want to slice. Input source for this transformation. |
| mode | Yes |
The action you want to take on the specified fields. Set it to A dataset must have at least 1 dimension field. If a sliceDataset node removes all dimension fields, the dataflow fails. |
| fields | Yes | An array of names of the fields that you want to drop or select from the specified source node. |