Guide Guide
Working with steps
Every change to a table is a step: a small, named, editable unit that takes tables in and gives one table out. This page explains how steps behave. Every step the app offers, with an example of each, is in Steps by family.
Adding a step#
A step can start from wherever you are:
- Right-click a cell, a selection, a column header or a row number. The actions that fit come first, with the value quoted and the effect as a hint: “Exclude
TEST”, “412 rows”. Add a step in the column menu opens every step by family. - Add step under the step cards in the recipe, or ⇧⌘A / Ctrl+Shift+A. Type in Find a step by name or by the word you would use elsewhere (“vlookup”, “dedupe”, “unpivot”).
- The command palette (⌘K / Ctrl+K): every step is there as “Add step: …”.
- An Issues fix, the Ask box, a SQL query you keep, or Keep as step from the view.
A new step goes after the selected one. When an earlier step is selected, the later steps are checked to see whether they still work.
Show before apply#
Every step goes through the same four beats, wherever it starts:
- A pending step appears in the recipe with a dashed border and its editor open, already filled in from where you started (the clicked value, the selected column).
- The preview and the impact line are worked out on the real data. The preview shows a few rows chosen to include the awkward cases: an empty value, the longest value, the rarest pattern, a row that fails. The impact line says what will happen in one sentence: “Removes 2,571 of 15,002 rows”, “Changes 318 cells in 1 column”, “Adds 2 columns”.
- Apply (⌘↵ / Ctrl+Enter) commits the step; Cancel (Esc) removes it and the grid is as it was.
- The applied card keeps the impact sentence. Undo (⌘Z / Ctrl+Z) removes it.
Counts are always against the whole table at that step, never the filtered view. On a very large table the first figure may be an estimate, marked “about”, replaced by the exact count when it arrives. In Sample mode a pipeline over a very large source is designed on a slice of it, the impact lines say so, and a full run confirms the figures.
The step editor#
Press Enter on a selected step, or ⌘E / Ctrl+E from anywhere, to edit it. The editor opens inside the card, with up to four tabs that all edit the same step:
- Settings: the form, beside the preview.
- Formula, for steps that can be one.
- SQL: exactly what the step does, in DuckDB SQL. Editing the SQL in a way the form cannot express turns the Settings tab into a read-only summary.
- Note: why the step exists. Steps made by AI keep the original request here.
Steps that can fail on a single row have an On error setting: Leave empty, Use a default, Keep the original, or Send the row to rejects. Rejected rows form their own table with the row and the reason: Open the rejected rows of this step, or Use the rejected rows in a step, and a check can count them.
Changing steps later#
Select a step to see the table as it was after it; ⌥↑ / ⌥↓ (Alt+Up / Alt+Down) move through the steps from anywhere. A step’s menu (right-click, or its “more” button) has Edit, Rename, Duplicate, Run to here, Show SQL, Add step above, Add step below, Group with…, Move up, Move down and Delete. In the recipe:
| Action | macOS | Windows and Linux |
|---|---|---|
| Edit the step | ↵ or ⌘E | Enter or Ctrl+E |
| Rename it | F2 | F2 |
| Switch it off or on | ⌘/ | Ctrl+/ |
| Duplicate it | ⇧⌘D | Ctrl+Shift+D |
| Move it up or down | ⌥⇧↑ / ⌥⇧↓ | Alt+Shift+Up / Down |
| Delete it (undoable) | Delete | Delete |
Drag a card to reorder. A step that an edit breaks is flagged in red with what is missing and a suggested repair, such as “Cannot run: the column “Order Month” no longer exists” with Use “Month” instead; the steps after it wait for it. Group steps under a heading… collects steps under a name such as “Clean customer names”, and a collapsed group shows their net effect. Save steps as a block… saves them as a block to use in other pipelines (Use a block…); updating a block offers the update, with a preview, to every pipeline that uses it.
Explore, then keep as a step#
Sorting, filtering, hiding and reordering columns in the grid change only the view. The chips above the grid show the filters (“Region is DACH”) and sorts; click a chip to edit it, drag one onto another to group them with OR. Shortcuts: ⌥= / Alt+= keeps only the active cell’s value in the view, ⌥− / Alt+− excludes it, ⇧⌘F / Ctrl+Shift+F adds a filter, ⌥⌘F / Ctrl+Alt+F clears them, and ⌥⇧↑ / ⌥⇧↓ (Alt+Shift+Up / Down) sort by the active column. Keep as step (⇧⌘K / Ctrl+Shift+K) turns the view into steps, with Undo in the toast. The pivot explorer (⌥7 / Alt+7) works the same way: drag fields to rows, columns and values, then Keep as step.
Formulas#
Add a formula column (command palette, or ⇧⌘A / Ctrl+Shift+A then “formula”) opens the formula bar. Formulas read like a spreadsheet and behave like a database:
- Columns are written in square brackets, with completion as you type
[:IF([Amount] > 1000, "Large", "Small"). Text goes in double quotes, dates between hashes (#2026-01-31#), and an empty cell isEMPTY. - Each function shows its help and an example as you type. The result previews on sample rows, with a count of the errors and empty values the formula would give: “Adds 1 column, “Band”. On 1,000 sample rows: 0 errors, 3 empty.”
- Show as switches between the formula and the same expression as SQL; edits in either update the other.
- Calculations across rows are ordinary functions with a group and an order:
RUNNINGTOTAL([Amount]) WITHIN ([Region]) ORDERED BY ([Order Date]). There are running totals, ranks, previous and next values, shares of total and moving averages. - Add a rule table replaces nested IFs: one row per condition and result, evaluated top to bottom, with a final “Otherwise”.
- Add a column by example…: type the result you want for two or three rows, and the app works out the rule, shows it in words and as a formula, and lists the rows where it is unsure.
- Your own functions, defined once in Settings › Functions, can be called from any formula, in this project or every project on this computer.
Every function, with examples computed on a sample table, is in the formula function reference.
SQL and scripts#
- Write SQL adds a SQL step: a query over the earlier steps and the project’s sources. Its result continues down the pipeline like any other step. The SQL tab in the drawer (⌥3 / Alt+3) queries any table in the project by name, with completion; Keep the query as a step or Keep the query as a new pipeline keeps a result.
- Run a script hands the table to Python, R or JavaScript in an isolated process and takes a table back. The script cannot reach the network where the operating system can enforce it. Settings › Scripts says which Python, R and Node it uses.
Correcting values by hand#
Double-click a cell, or press F2 (Correct this value…), to correct it. The editor shows the old value and names the row the correction is for (“For Order ID 000184205”): “It is reapplied on every run.” The correction is a step tied to that row’s key, so it lands on the same row next month; if the key is not there, the run warns rather than correcting the wrong row. A table needs a key for this; the editor offers to choose one. To standardise categories, Map values keeps a mapping table, editable in place or read from a file.
Types#
| Type | Notes |
|---|---|
| Text | Kept exactly as read |
| Whole number, decimal, float | Decimal is exact and is the default for money |
| True or false | Reads yes/no, Y/N, 1/0 and other common spellings |
| Date, time, date-time, duration | Date-times carry a time zone; conversions are explicit |
| List and record | For nested data; can be expanded or built |
Change type shows which values would fail before anything is applied: “118 values in Order Date are not dates, such as “31/02/2026”. Nothing has been changed.”, with Show the 118 rows and Leave them empty.
See also#
- Steps by family and Formula functions.
- Checks, which attach to steps.