Retain the last N data rows, discarding the rest.
Example
In this example, we set the Tail to retain only the last 1 row.
Example Input
dim_A | dim_B | metric_1 |
AAA | ddd | 111 |
BBB | eee | 222 |
CCC | BBB | 333 |
Example Output
dim_A | dim_B | metric_1 |
CCC | BBB | 333 |
I Ain't Afraid of No Code!
[
[
"tail",
{
"subtable": null,
"n": 1,
"_comment": null
}
]
]
param str subtable: Name a subtable in which output will be stored (will create subtable where necessary).
param int n: Amount of rows to be kept, starting from last.
param str comment: A comment that will appear in the Transformation UI.
Comments
0 comments
Article is closed for comments.