Prepare: preparing data
Prepare is the workshop where you shape your data, without writing code. Each action (a filter, a computed column, a grouping…) becomes a step, and the sequence of steps forms a transformation that Matr replays every time. The result is then used to create a dashboard widget or a new dataset.
Your original data is never modified: the transformation is a recipe applied on top.
The screen
Section titled “The screen”
| Area | Content |
|---|---|
| Data (on the left) | The app’s datasets, with their size (rows x columns). Click a dataset to start from it. |
| Transformations | The saved transformations, with their number of steps and of widgets that use them, and the current Draft. |
| Step rail (Draft until something is saved) | The steps of the transformation, in order. Visible in Edit mode. |
| The grid | The preview of the data after the steps. |
The banner under the grid shows how many rows are displayed out of the total. When it says Computed on the first N rows of the starting table or Approximate totals, the preview is based on a sample: the figures are indicative.
Read or edit
Section titled “Read or edit”Prepare opens in read mode: you browse the data without changing anything. To transform, click Edit; to go back to reading, click Done.
| Mode | Toolbar |
|---|---|
| Read | Edit, Manage data, Pivot table (beta), Density, Full screen |
| Edit | Done, Filter, Compute, Join, Group, Deduplicate, Columns, Format, then Manage data, SQL, Full screen and Use |
The menu in a column header also offers sorting (Sort A to Z, Sort Z to A), Rename…, Hide this column, Open column details, as well as shortcuts to the steps (Filter…, Add a computed column…, Group by this column…).
Manage data adds or removes datasets from the app (see Understanding a data app). The SQL icon shows the query produced by your steps, with a Copy button.
Add a step
Section titled “Add a step”Each step is added at the end of the transformation, and the preview is recomputed.
- Click Edit.
- Choose the step in the toolbar, in the rail’s Add a step menu, or from a column header menu.
- Fill in the window, then confirm with its button (Filter, Add column, Group…).
Filter
Section titled “Filter”Keeps only the rows that meet your conditions.
- For each condition: a Column, a Condition and a Value. Available conditions: Equals, Not equal to, Greater than, Greater or equal, Less than, Less or equal, Contains, Starts with, Ends with, Is one of, Is not one of, Is empty, Is not empty.
- Add a condition, then choose Combine with: ALL conditions or AT LEAST ONE condition.
Computed column
Section titled “Computed column”Adds a column computed by a formula, as in a spreadsheet.
- Column name (for example
margin_per_customer) and Formula. A column is referenced between square brackets:[revenue] - [cost]. - In the Formula field, you can simply describe what you want to do (“margin in %”, “1 if the customer churned”), then press Enter or click Write the formula with AI: Matr replaces your text with the formula and says in one sentence what it computes (Ctrl+Z brings your text back). A typed formula that does not work is fixed the same way. If the request belongs to another step (removing duplicates, keeping some rows, computing a total), Matr says so and offers to open it.
- The templates under the editor (if… then… else, difference, rate, tiers, time between two dates…) write the formula in one click, with columns already picked: fix what is selected, then Tab moves to the next slot.
- Type
[to pick a column, even in the middle of a description. When the field starts with a function or a column, Matr suggests columns and functions as you type; Ctrl+Space opens the list at any time. Enter or Tab inserts the suggestion. - Matr checks the formula live: The formula is valid. Otherwise, the message says what to fix. Confirm with Add column.
- If the name already exists, choose Create another column or Replace “…”.
Every function, ready-to-copy recipes and the usual errors are on the Formulas page.
Bring columns (join)
Section titled “Bring columns (join)”Join button. The equivalent of a VLOOKUP: you bring columns from another table of the app.
- The Proposed tables come with their key already filled in: a link saved on the dataset page, or a likely key that Matr guesses from the column names (
customer_idon both sides,customer_idtocustomers.id). - None fits? Pick another key: the table, the Your table column and the Matching column…, then Add this key.
- Before you confirm, each key shows the share of rows that find a match (“92% of rows find a match”). Two columns of different types (a number and a text) can’t be used as a key.
- Tick the columns to bring, from several tables if needed. A Prefix for brought columns avoids duplicate names.
- Confirm with Bring columns.
A key you pick only applies to this transformation. To reuse it elsewhere, tick Save this link: it will be offered in the other apps, and will also serve dashboard filters and row access restrictions. The box only shows if you can edit both datasets (see Data and datasets).
Produces one row per combination of values, with calculations.
- Group by: the columns that form the groups (for example the city).
- Calculations: a Column (or All rows), a Calculation (Count, Distinct count, Sum, Average, Minimum, Maximum) and a Result name.
- Without a grouping column, you get a single row: the grand total.
After a grouping, only the grouping columns and the calculations remain.
Columns
Section titled “Columns”Untick the columns you do not want to keep and rename those that need it (Rename (optional)). Confirm with Apply.
Deduplicate
Section titled “Deduplicate”Removes rows that repeat. The kept row keeps its values as they are.
- Compare on: All columns, or Some columns (two rows are then duplicates if they have the same values on these columns, even if they differ elsewhere).
- Ignore, when comparing (optional): leading and trailing spaces, case (Dupont = DUPONT), accents (Éric = Eric), repeated spaces. This is only used to compare: the data is not rewritten.
- Row to keep: choose Sort by a column and the Order (for example descending on a date to keep the most recent row). This is required when the rows of a group differ outside the compared columns.
- Click Show the groups that will be merged to check, then Deduplicate.
Format
Section titled “Format”Sets the table display (colors, widths, value format) without touching the data. The settings are the same as for a Report table (see Report).
Manage steps
Section titled “Manage steps”In the step rail:
- click a step to see the preview at that point (“Preview at step 2 of 5”);
- reopen it to edit it;
- Disable step sets it aside without losing it (Re-enable step to put it back);
- Delete step removes it.
Under the steps that remove rows, the rail shows how many were removed and how many remain.
If a step cannot be computed, the error indicates the step at fault (click to reopen it). Ask the chat opens the Report chat with the question already written (with the app assistant, the chat opens next to Prepare, and it can propose a view for you to apply).
Fix an anomaly
Section titled “Fix an anomaly”From the anomaly panel (see Understanding a data app), Fix in Prepare opens Prepare on the dataset concerned.
For a duplicate, Prepare also opens an already filled Deduplicate step, with the banner “Step proposed from an anomaly finding”. Nothing is applied until you have checked and clicked Deduplicate.
Save a transformation
Section titled “Save a transformation”At the bottom of the rail, the footer shows the state: Not saved, Modified since… or Saved at….
- Click Save.
- The first time, give it a Name (by default “Transformation of …”).
Saving stores the recipe; it creates neither a widget nor a dataset. You find the transformation in the Transformations panel, where its menu offers Rename and Delete.
Use the result
Section titled “Use the result”In Edit mode, click Use. A transformation that was never saved is saved along the way.

Create a widget
Section titled “Create a widget”- Choose Create widget.
- Enter the Widget title.
- Choose the Widget type: Table, Bars, Line, Pie, Scatter, Heatmap or KPI.
- Indicate the columns to use (Horizontal axis, Value, Labels depending on the type). For a KPI, the KPI value comes From a column (with an Aggregation: sum, average, row count…) or From a formula (for example
[revenue] - [cost], see Formulas). - Choose the Dashboard tab, then confirm.
The widget replays the transformation: it updates when it changes, it does not copy the result.
Save as dataset
Section titled “Save as dataset”- Choose Save as dataset.
- Enter the Dataset name, then confirm.
The created dataset is a view: its data is not frozen, the transformation is replayed at each read, so it follows the source’s updates. It can be reused in this app (it appears in the Data panel), but it does not appear in the organization’s dataset list: it only exists in this app.
You need the right to edit the app to create a dataset.
Pivot table (beta)
Section titled “Pivot table (beta)”In read mode, Pivot table summarizes the data without adding a step to the transformation.
- Click Pivot table.
- Choose Group by (or drag a column header into the dedicated area), and if needed Cross by a second column.
- Choose what to Show: Row count or a calculation (sum, average…), as a value, as % of row or as % of column.
Then:
- Create widget places this expandable pivot table, with its total, on the dashboard;
- Make it a step switches to edit mode and opens a pre-filled Group step.
Live datasets
Section titled “Live datasets”A live dataset (Live badge) is read from the source at each computation: answers are slower than with an imported dataset. Prepare can read Redshift, Snowflake and PostgreSQL live sources; the others appear greyed out in Data.
With a live dataset, some things are not possible:
- mixing a live dataset and an imported dataset, or two live connectors, in the same transformation;
- a few operations, including replacing an existing column, ignoring accents when deduplicating and the annees_entre function.
A message tells you when you attempt one of them.