Help Center
Data

Joining data sources in a mapping

Pull extra fields from a second data source by matching a key column.

Joining data sources in a mapping

Sometimes the values for one graphic live in two tables: a player list with a team code, and a separate team list with each team's full name and logo. A joined source lets one mapping look up values in a second data source by matching a key column.

How it works

  • The mapping's primary data source decides the rows: one record per primary row.
  • For each joined source you pick a Primary key column in the primary source and a Lookup key column in the joined source.
  • For every primary row, the mapping finds the first row in the joined source where the lookup key equals the primary key. Fields bound to the joined source take their values from that row.

Adding a joined source

  1. Open the mapping.
  2. In Joined Sources, click Add joined source.
  3. Pick the Lookup source — any other data source in the project.
  4. Pick the Primary key (column in the primary source) and the Lookup key (column in the lookup source).
  5. Under Field Bindings, set From Source to the joined source for the fields that should come from it, then pick the Source Column.
  6. Click Save, then Preview to check the result.

You can add several joined sources to one mapping. If the project has no other data source, you get the message "No other data source in this project to join."

Matching rules

  • Keys are compared as text, with leading and trailing spaces ignored — 1 and 1 match.
  • If several lookup rows have the same key, the first one is used.
  • If no lookup row matches, the fields from that source are empty for that row. The row itself is still included.
  • Rows whose key is empty never match.

Removing a joined source

Click the trash icon on the join row. Bindings that used it are reset to the primary source with no column, so check Field Bindings before you save.

Keeping joined data current

A mapped dataset is only updated when it is refreshed. After you change data in either the primary or the joined source, click Refresh on the dataset. See Previewing and refreshing.