Combined imports
Stack several imports into one, or match them on a key.
A combined import makes one tab from several imports that already exist. Once you have two imports or more, press Combine imports into one under your list of imports.
Choose the imports
Under Imports to combine, tick the imports to use. They are numbered in the order you tick them: #1, #2 and so on. Each keeps refreshing its own tab as before.
Three ways to combine
| How | What you get |
|---|---|
| Stack the rows | The rows of every import, one under the other. Columns with the same name are lined up. Add a column saying where each row came from labels each row with its import. |
| Match on a column | Every row of import #1, with the columns of the others added where the Column that matches rows has the same value, like a lookup. |
| SQL | Any query over the chosen imports. They are tables t1, t2… in the order ticked, and also have names made from their titles. |
SELECT c.name, SUM(i.amount) AS due
FROM t1 c JOIN t2 i USING (email)
GROUP BY ALL
The SQL runs in a private, in-memory database for each refresh; nothing is kept.
How it refreshes
A combined import reads its parts from their sources when it refreshes, on its own schedule, and writes its own tab. A preview shows the first rows before you save it.