Table of Contents

KEEP/REMOVE COLUMNS

Category: Transform / Basic


Description

This action keeps or removes selected columns. Several columns can be kept or removed within a single action. The action's icon will depict whether this action is in "Keep" or "Remove" mode.


Use cases


Action settings

Mode options

Setting Description
Keep selected columnsThe chosen columns are kept and all other columns are removed from the dataset.
Remove selected columnsThe chosen columns are removed. You are unable to remove all columns from a dataset.
Fail if selected column(s) not foundCheck this option on to stop the workflow with a failure if the selected column(s) is/are not in the dataset.

Columns

A list of columns found in the current dataset is presented to select which columns to keep or remove.


Examples

Example #1

Remove the column "Continent".

Before (source table)

River Length (km) Continent
Nile 6650Africa
Amazon 6400South America
Yangtze 6300Asia
Mississippi 6275North America

After (result table)

River Length (km)
Nile 6650
Amazon 6400
Yangtze 6300
Mississippi 6275

Action parameters:

Columns to remove: Continent


Example #2

Keep only the "River" and "Continent" columns - remove all others.

Before (source table)

River Length (km) Continent
Nile 6650Africa
Amazon 6400South America
Yangtze 6300Asia
Mississippi 6275North America

After (result table)

River Continent
Nile Africa
Amazon South America
Yangtze Asia
Mississippi North America

Action parameters:

Columns to keep: River, Continent


Community examples


Shortcuts

Fast ways to create the action:

Remove columns:

Keep columns:


See also