# derivenode properties #

![Derive node icon](https://dataplatform.cloud.ibm.com/docs/content/wsd/nodes/scripting_guide/clementine/images/derive_node_icon.png)The Derive node modifies data values or creates new fields from one or more existing fields\. It creates fields of type formula, flag, nominal, state, count, and conditional\.

<!-- <table "summary="derivenode properties" id="derivenodeslots__table_wlp_qbj_cdb" class="defaultstyle" "> -->

derivenode properties  

Table 1\. derivenode properties

| `derivenode` properties | Data type                                                                                                                                                                                                                                                     | Property description                                                                                                                                                                                                                       |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `new_name`              | *string*                                                                                                                                                                                                                                                      | Name of new field\.                                                                                                                                                                                                                        |
| `mode`                  | `Single``Multiple`                                                                                                                                                                                                                                            | Specifies single or multiple fields\.                                                                                                                                                                                                      |
| `fields`                | *list*                                                                                                                                                                                                                                                        | Used in Multiple mode only to select multiple fields\.                                                                                                                                                                                     |
| `name_extension`        | *string*                                                                                                                                                                                                                                                      | Specifies the extension for the new field name(s)\.                                                                                                                                                                                        |
| `add_as`                | `Suffix``Prefix`                                                                                                                                                                                                                                              | Adds the extension as a prefix (at the beginning) or as a suffix (at the end) of the field name\.                                                                                                                                          |
| `result_type`           | `Formula``Flag``Set``State``Count``Conditional`                                                                                                                                                                                                               | The six types of new fields that you can create\.                                                                                                                                                                                          |
| `formula_expr`          | *string*                                                                                                                                                                                                                                                      | Expression for calculating a new field value in a Derive node\.                                                                                                                                                                            |
| `flag_expr`             | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `flag_true`             | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `flag_false`            | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `set_default`           | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `set_value_cond`        | *string*                                                                                                                                                                                                                                                      | Structured to supply the condition associated with a given value\.                                                                                                                                                                         |
| `state_on_val`          | *string*                                                                                                                                                                                                                                                      | Specifies the value for the new field when the On condition is met\.                                                                                                                                                                       |
| `state_off_val`         | *string*                                                                                                                                                                                                                                                      | Specifies the value for the new field when the Off condition is met\.                                                                                                                                                                      |
| `state_on_expression`   | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `state_off_expression`  | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `state_initial`         | `On``Off`                                                                                                                                                                                                                                                     | Assigns each record of the new field an initial value of `On` or `Off`\. This value can change as each condition is met\.                                                                                                                  |
| `count_initial_val`     | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `count_inc_condition`   | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `count_inc_expression`  | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `count_reset_condition` | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `cond_if_cond`          | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `cond_then_expr`        | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `cond_else_expr`        | *string*                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                            |
| `formula_measure_type`  | `Range / MeasureType.RANGE``Discrete / MeasureType.DISCRETE``Flag / MeasureType.FLAG``Set / MeasureType.SET``OrderedSet / MeasureType.ORDERED_SET``Typeless / MeasureType.TYPELESS``Collection / MeasureType.COLLECTION``Geospatial / MeasureType.GEOSPATIAL` | This property can be used to define the measurement associated with the derived field\. The setter function can be passed either a string or one of the `MeasureType` values\. The getter will always return on the `MeasureType` values\. |
| `collection_measure`    | `Range / MeasureType.RANGE``Flag / MeasureType.FLAG``Set / MeasureType.SET``OrderedSet / MeasureType.ORDERED_SET``Typeless / MeasureType.TYPELESS`                                                                                                            | For collection fields (lists with a depth of 0), this property defines the measurement type associated with the underlying values\.                                                                                                        |
| `geo_type`              | `Point``MultiPoint``LineString``MultiLineString``Polygon``MultiPolygon`                                                                                                                                                                                       | For geospatial fields, this property defines the type of geospatial object represented by this field\. This should be consistent with the list depth of the values                                                                         |
| `has_coordinate_system` | *boolean*                                                                                                                                                                                                                                                     | For geospatial fields, this property defines whether this field has a coordinate system                                                                                                                                                    |
| `coordinate_system`     | *string*                                                                                                                                                                                                                                                      | For geospatial fields, this property defines the coordinate system for this field                                                                                                                                                          |

<!-- </table "summary="derivenode properties" id="derivenodeslots__table_wlp_qbj_cdb" class="defaultstyle" "> -->

<!-- </article "role="article" "> -->