Build your first data pipeline in Mammoth, step by step
A pipeline is the ordered list of tasks in a view that cleans and reshapes a dataset, and runs again on new data. Here you load the built-in Multi-Store Retail Sales sample from Data > New dataset > Sample Files and build a three-task pipeline that filters rows, standardises values and adds a calculated column. You need the Project Admin or Project Editor role; a Project Viewer can't add data or tasks (Members, roles and custom roles).
For a shorter tour that ends with a shared dashboard, see the Quick start.
Step 1: Load the Multi-Store Retail Sales sample data
The steps below use the sample's column names.
- Click Data in the left sidebar, then New dataset.
- In Where do you want to add data from?, click Sample Files.
- On the Business tab, click the Multi-Store Retail Sales card.
- Click Create new dataset.
The dataset appears in the Data Library: 51 rows of retail sales from five clothing stores. Other samples: Create data with AI or a sample file.
Upload your own file instead
- Click Data, then New dataset.
- Choose Upload (the default).
- Drag your file into the upload area, or click Upload file and pick it.
- Click Submit.
If Mammoth needs your input while it reads the file (for example, Choose how to read it or Extract sheets), the dataset says so. See Upload files for those prompts, formats and size limits.
Step 2: Open the dataset in a view
Click the new dataset in the Data Library, then Explore in its panel. The view shows:
| Part | Where and what |
|---|---|
| data grid | Your data, like a spreadsheet |
| Pipeline panel | On the left; first card Source, header "No tasks" |
| Describe your transformation box and blue + button (tooltip "Add a task") | In the action bar; both open the Transform menu |
| Explore panel | Above the grid; a new view shows No cards yet, and Add card picks a column (Explore cards) |
Expected result: 51 rows, and the header reads "No tasks".
Step 3: Keep high-revenue orders with a Conditional Filter
Keep only orders with total revenue over 100.
- Click the blue + button. The Transform menu opens on AI Powered, with the Describe your transformation search box at the top. Its categories are AI Powered, Filter, Label & Replace, Date, Numeric & Text, Reshape, Group & Pivot, Column Management, Unify and Controls.
- Click Filter, Label & Replace, or type "filter" in the search box.
- Click Conditional Filter. The panel opens at the bottom of the view, in SQL mode.
- Click Builder (the SQL / Builder toggle is below the Describe what you want to generate bar).
- Leave Keep selected in front of "values where…" (Remove would drop the matching rows).
- Set Column to total_revenue, Operator to is greater than, and Value to 100.
- Click Apply.
The Condition Summary below the builder restates the rule in words. In SQL mode you could type "total_revenue" > 100, or describe the rule in the Describe what you want to generate bar and click Generate. Every operator: Filter rows.
A Conditional Filter card appears under Source. It ran straight away because Draft mode is off by default, and it runs again every time the pipeline runs.
Expected result: the header reads "1 Task", and the card's footer shows "20 rows", all with total_revenue above 100.
Step 4: Standardise product names with Bulk Replace
Bulk Replace replaces groups of variant values in a text column with one standard name per group. Mammoth suggests groups, and you can build your own.
-
Click + > Filter, Label & Replace > Bulk Replace.
-
Pick product_name as the column.
-
Open the Group Suggestions tab.
-
In Grouping Settings, choose how suggestions are made:
Grouping setting How it groups Smart Understands meaning and context (AI) Similarity (default) Groups by calculated similarity Spelling Match Groups words with similar spelling Common Patterns Groups common word variations -
Click Add suggestion on a suggestion to turn it into a group, or Create all Group Suggestions to add them all.
The sample's product names are fairly consistent, so you may get few suggestions, and a suggestion can join two different products. Keep only groups whose values mean the same thing.
Build a group by hand
- Open the All Values tab.
- Tick Leather Jacket and Blazer.
- Click Add to New Group.
- Click the edit icon beside Group Name and name the group Jackets.
- Click Next. A summary lists each group and its values.
- Leave Place in set to the existing column.
- Click Apply.
Before you apply, a group's trash icon (Remove Group) takes it out. Every value in a group becomes the group's name; values in no group stay as they are. To move values between groups or catch new variants with rules, see Find and replace values.
Expected result: the header reads "2 Tasks", and product_name shows Jackets where it showed Leather Jacket or Blazer.
Step 5: Add a Gross_Sale column with Math Function
- Click + > Date, Numeric & Text > Math Function. It opens in SQL mode.
- In the SQL Expression editor, type
"quantity_sold" * "unit_price", or describe the calculation in the Describe what you want to generate bar and click Generate. - Under Place in, choose new number column and name it Gross_Sale.
- Check the preview window above the panel.
- Click Apply.
For Formula mode, see Calculate with formulas.
Expected result: the header reads "3 Tasks", and the new Gross_Sale column (scroll right) has a value on every row.
How the three tasks run in order
3 Tasks ← Pipeline panel header
Source ← Your original data
├── 1. Conditional Filter ← Runs first
│ Keep rows where total_revenue > 100
│
├── 2. Bulk Replace ← Runs second
│ product_name: Jackets group
│
└── 3. Math Function ← Runs last
New column Gross_Sale
Each task works on the output of the task above it, starting from your original data, like a recipe.
Check the results before and after the pipeline
| Before | After | |
|---|---|---|
| Rows | 51, with all revenue values | 20, all with total_revenue over 100 |
| Product names | Leather Jacket and Blazer separate | Both replaced with Jackets |
| Gross_Sale | No column | A value on every row (20 columns in all) |
Preview the data at one task
- Click the row count in a task card's footer (tooltip "Preview Data at this Task").
- A banner reads "Previewing Data at Task 1..." (with that task's number), and the grid shows the data right after that task.
- Click Exit Preview [Esc] or press Esc to go back.
Checking each task in turn shows where an issue starts. For single numbers, such as the sum of Gross_Sale, open the Metrics panel (Metrics).
Related
- Change, reorder and fix tasks: suspend, copy, reorder or undo a task, and fix common problems.
- After your first pipeline: reuse, export and the next tasks to learn.
- How the pipeline works: how tasks run, previews and Draft mode.
- Fix a failing step: when a task shows an error.
Something wrong? support@mammoth.io