Adds field row
with row numbers.
Example

Example Input
dim_A | dim_B | metric_1 |
AAA | DDD | 111 |
BBB | EEE | 222 |
CCC | FFF | 333 |
Example Output
dim_A | dim_B | metric_1 | row |
AAA | DDD | 111 | 2 |
BBB | EEE | 222 | 4 |
CCC | FFF | 333 | 6 |
I Ain't Afraid of No Code!
[
[
"addrownumbers",
{
"start": 2,
"step": 2,
"subtable": null,
"field": "row",
"_comment": null
}
]
]
param int start: First value for row.
param int step: Increment steps for row.
param str subtable: Name a subtable in which output will be stored (will create subtable where necessary).
param str field: Name of new field holding row numbers.
param str comment: A comment that will appear in the Transformation UI.
Comments
0 comments
Article is closed for comments.