Category: Transform / Filters
This action keeps or removes the first or last N rows.
Keep only the top N significant items (e.g. top 10 products by sales volume) for a report or dashboard.
Reduce the size of a larger dataset to a specific number of rows during the initial build of a workflow. Remove or disable the Trim table action when the workflow is complete, to process the entire dataset.
Remove extraneous metadata from the top or bottom of a dataset.
Setting | Description |
---|---|
Keep only/Remove | Select whether N number of rows will be kept or removed. |
Top/Bottom | Select whether the rows at the top or bottom of the table will be kept/removed. |
N rows* | Enter/Select the number of rows to keep/remove. |
* Setting can be specified using a parameter.
Example: Keep the top three longest rivers.
Table: The longest rivers in the world (in descending order by length)
River | Length (km) | Continent |
---|---|---|
Nile | 6650 | Africa |
Amazon | 6400 | South America |
Yangtze | 6300 | Asia |
Mississippi | 6275 | North America |
Yenisei | 5539 | Asia |
Yellow River | 5464 | Asia |
Ob | 5410 | Asia |
ParanĂ¡ | 4880 | South America |
Action parameters:
Keep or Remove is "Keep"
Top or Bottom is "Top"
Number of rows is "3"
Result table:
River | Length (km) | Continent |
---|---|---|
Nile | 6650 | Africa |
Amazon | 6400 | South America |
Yangtze | 6300 | Asia |