Changes the order of fields in an extract. Unlisted fields are dismissed.
Example

Example Input
dim_A | dim_B | metric_1 |
AAA | DDD | 111 |
BBB | EEE | 222 |
CCC | FFF | 333 |
Example Output
metric_1 | dim_B | dim_A |
111 | DDD | AAA |
222 | EEE | BBB |
333 | FFF | CCC |
I Ain't Afraid of No Code!
[
[
"reorder",
{
"subtable": "subtable",
"fields": [
"metric_1",
"dim_B",
"dim_A"
],
"_comment": null
}
]
]
param str subtable: Name a subtable in which output will be stored (will create subtable where necessary).
param list fields: List of fields in desired order.
param str comment: A comment that will appear in the Transformation UI.
Comments
0 comments
Article is closed for comments.