Skip to content
Learn › Organise your data: open the docs menu

Combine two or more datasets into one

Combine stacks the rows of two or more datasets in one place, for example monthly exports that arrive as separate files, or the same report from several regions. Tick the datasets in the Data Library under Data in the left sidebar, then click Combine in the selection bar (or right-click a selected row). You need edit access to the project; with view-only access, Combine is unavailable.

To put columns side by side, matching rows on a key, use a Join or Lookup instead: see Join two datasets on a shared column.

Open the Combine dialog

The Combine 2 datasets dialog (it counts your datasets) says: "Put their rows together in one place. Two ways, and they leave you with different libraries." Combine is available only when every selected item is a ready dataset:

MessageWhy
"Only datasets can be combined."The selection includes a folder, a View or a raw file
"“Sales” is not ready yet."One of the datasets is waiting on your input
"“Sales” is still processing."One of the datasets is still processing

Choose between batches in one dataset and sending into a dataset

Step 1 shows two cards with before-and-after diagrams. When only one is available, it is picked for you. Pick one and click Next.

OptionWhat happensAfterwardsPick it to
Batches in one dataset"The originals are consumed, and their refreshes go with them." Their rows become batches in the dataset you keep.2 datasets become 1Tidy up, for example two uploads of a report that should have been one dataset
Send into a dataset"The originals stay, and keep sending rows as they refresh." Their rows append into a new or existing dataset.3 datasets become 4 (or stay 3 when you send into one you already have)Keep the originals' own refreshes or pipelines and collect from all of them

Merge two datasets as batches in one dataset

The card says why when this option is unavailable:

ConditionMessage when it fails
Exactly two datasets are selected"Two datasets at a time" (the column mapping is set up per pair)
Neither dataset has more than one View"“Sales” has 2 views, so there is no answer to which one survives."
Neither dataset has steps in its View"“Sales” has 3 steps built on it, so its rows cannot move."
  1. Choose Batches in one dataset and click Next.
  2. Under Keep which one?, pick the dataset that stays (each option shows its columns and rows). "Each batch keeps its own name and date, so you can suspend or remove one later."
  3. If the column counts differ, a warning says you will match columns next.
  4. Click Combine into (the button names the dataset you keep).
  5. The Add data dialog opens on that dataset, with Select existing and the other dataset chosen. Check the column match.
  6. Leave Delete dataset after combining ticked, so the other dataset stops existing. See Add or replace data.

The kept dataset holds both sets of rows as separate batches, listed in its Batches section under Settings & history: see Manage batches.

Send several datasets into one that keeps updating

This works for any number of datasets. Each original gets a Send to Dataset step at the end of its View (the one you were last in, or its first View). The step runs every time that View's pipeline runs, so the destination keeps receiving rows. See Send pipeline output to another dataset.

  1. Choose Send into a dataset and click Next.
  2. Under Send into, choose a destination:
    • New dataset ("The originals stay and keep sending to it."): type a name in Name the new dataset. It goes into the folder you are in, or the top of the project.
    • An existing dataset ("Any dataset in this project. Its columns stay as they are."): pick it in the finder and click Choose a dataset (Change picks another). Any dataset in the project except the ones you are combining.
  3. Check Review columns (see below).
  4. Click Create (it shows the new name, or press Enter in the name box) or Send into (it names the destination).

The dialog shows progress: "Reading the columns of each dataset…", "Creating the new dataset…", then, for example, "Sent 2 of 3…". An original that already sends to the chosen dataset is left out, and the dialog says so: sending it twice would add its rows twice on every refresh.

Match columns that differ between datasets

Review columns shows each column's fate, with counts such as 4 in all and 1 in some.

DestinationHow columns are matched
New datasetGets every column from every original, matched by name. A column only some originals have is "Empty in rows from" the others. Close names are flagged ("Looks like the same column as …"); Make one column merges them. Leave out drops a column. A column with different types becomes text, and the review names the types.
Existing datasetIts columns stay. Each original's columns match by name, and you can send one into a different column. Columns with no match are listed under "Left out: these have no column in" the destination.

If nothing from one original fits, the button is disabled: send at least one of its columns into a column in the table, or go back and leave that dataset out.

What you see after the send

ResultMessage
New dataset created"Created “All regions”. Its rows come from 3 datasets and update when they refresh." with Open
Sent into an existing dataset"“All regions” now gets rows from 2 more datasets and updates when they refresh."
Some columns had no match"Region, Code had no column of the same name in “All regions” and were not sent."
A column was widened"Order ID held more than one kind of value, so it is text in the new dataset."
Nothing sent"Nothing was sent. Your datasets are unchanged."

Sources are sent one at a time, stopping at the first failure, for example "Sent 2 of 3 to “All regions”, then West failed." The destination keeps what was sent.

Limits

LimitValue
Batches in one datasetExactly two datasets, each with one View and no steps
Send into a datasetAny number of datasets
StorageMammoth checks your workspace's storage limit before it sends. Over the limit, the send does not start.

Troubleshooting

SymptomCauseFix
"Two datasets at a time"More than two are ticked for Batches in one dataset.Tick two, or use Send into a dataset.
"“Sales” has 2 views, so there is no answer to which one survives."A dataset has more than one View.Use Send into a dataset, or delete the extra View.
"“Sales” has 3 steps built on it, so its rows cannot move."A dataset's View has pipeline steps.Use Send into a dataset.
"There’s already a dataset called this here."The new name is taken in this folder.Type another name.
"Sent 2 of 3 to “All regions”, then West failed."The send stopped at the first failure.Check the failed dataset, then send it again.
The send does not startThe workspace is over its storage limit.Free space, for example by emptying Trash. See Get things back from Trash.
Was this page helpful?

Something wrong? support@mammoth.io