Skip to content

How to

Put two files on one dashboard

Sales come from one system and targets from a spreadsheet. Join them on the column they share, and one dashboard shows both. Next month's file joins itself.

107 seconds, real app, made-up store data. Follow along with the same three: October sales (CSV), store targets (Excel) and November sales (CSV). Download the video (MP4)

The steps

  1. 1

    Upload both files

    In Data, choose New dataset and upload both files at once. Each becomes its own dataset. Here, one has a row per store with its sales for the month; the other lists each store's manager, region and monthly target.

  2. 2

    Start a join from the sales data

    Open the sales dataset in Explore, choose the + button to add a step, then Unify and Join. Pick the other file, Store targets, and choose Select.

  3. 3

    Match on the column they share

    Set the key column to Store on both sides. Then tick the columns to bring across, here Manager and Monthly target. The preview shows the joined rows before anything changes.

    The Join panel with Store chosen as the key column on both sides, and Manager and Monthly target ticked under Join columns
  4. 4

    Check the matches, then apply

    The Matches tab counts rows on each side that found a partner. All five stores matched and none were left over. If some don't, check the spelling of the key values. Then choose Apply.

    The Matches tab: this view 5 rows, 5 that match, 0 with no match; the other view the same
  5. 5

    See the joined rows

    Each sales row now carries its store's manager and target. The join is a step in the pipeline, so it runs again whenever either file changes.

    The joined table: Month, Store, Transactions, Sales, Manager and Monthly target for five stores
  6. 6

    Build the dashboard

    Choose Publish, then Dashboard, and describe what you want. Mammoth builds a draft. To put sales and target side by side, choose Add, pick Bar, choose Add measure and set it to Monthly target.

    A dashboard table of store, manager, sales and monthly target, next to a bar chart of sales and monthly target by store
  7. 7

    Add next month

    When November's sales arrive, open the sales dataset and choose Add data. The join runs again, and the dashboard picks up the new rows, each with its manager and target.

    The same dashboard after November was added: ten rows in the table, each with its manager and target, and the chart updated

Pick a good key

The key is the column both files share. The join matches rows where its values are the same.

  • Store name, customer ID, product code or invoice number
  • Two key columns when one isn't unique, such as store and month
  • The same spelling and type on both sides: “Mill Yard” won't match “Mill Yard Ltd”

If one file has several rows per key and the other has one, join the one-row file into the many-row file, as here.

If it doesn’t look right

Some rows didn't match
Look at the Matches tab for the count, then compare the key values in both files. Spaces, capitals and abbreviations are the usual cause. Clean them in Explore before the join.
A total is far too big
If the sales file had a row per day, a monthly target would repeat on every day and add up to many times its real size. Join targets to sales at the same grain, here a row per store per month.
The column you want isn't on the dashboard
A dashboard reads the columns the view had when it was built. Tick the column in the join, then add a chart for it with Add.

Every month after

Each new sales file you add to the dataset goes through the same join, so the dashboard stays right without copying columns across. When targets change, open the targets dataset, choose Add data and swap in the new file. The join picks up the new values.
Join and Lookup in the docs

Try it with your own two files.

Upload both, join on the column they share, then build the dashboard.

  • ✓ 14-day Pro trial
  • ✓ No credit card
  • ✓ Viewers always free