What's new ⬇ Download Reportworq
⬇ Guide PDF

Bring several sources into one model#

Early release. This feature is in early release, so its screens and behavior may change. Tell us what you think with Send feedback. See Early release features and Send feedback.

A data model can read any number of sources at once. A source is either a connection from Integrations (a SQL database, IBM Planning Analytics, a SaaS system) or a workspace file (an Excel workbook or SQLite database that lives in the same workspace as the model). You can mix both kinds, so actuals from a database, a forecast from a planning cube and a lookup workbook can feed one model, and report authors see them as one list of views.

When to use it. Put sources in one model when people will report on them together or pick from them in the same place. At Timberline Harvest Co., the Sales Journals model reads the TransactionDetails workbook. Add the Timberline Journal Data database and the TM1 connection to the same model, and a joined view can set invoiced sales beside a planning forecast. If two sources have nothing to do with each other, two models are tidier: each model has its own folder permissions, its own variables and its own list of views.

Before you start#

Add a second source#

  1. Open the data model and select Source at the top of the rail on the left. The Source screen opens.
  2. Select the Sources tab. It lists every source the model reads, with the kind of source and how many views read it, for example Connection · SQLite · 1 view.
  3. Add the source:
    • Connection. Select Add connection and choose a connection from the list. The list shows only enabled connections that the model does not already read. If every connection is already a source, the list reads No more connections configured.
    • Workspace file. Select Add workspace file…. In the Select a workspace file dialog, pick a workbook or SQLite database and confirm. If you pick a file the model already reads, Reportworq says '<path>' is already a source of this data model.
  4. Select Save Changes.
The Sources tab of the Sales Journals data model after a second source was added. Two rows are listed, the TransactionDetails workbook connection and the Timberline Journal Data SQLite connection, each with Change, Export and Remove controls, and the Add connection and Add workspace file buttons sit below.
The Sources tab of the Sales Journals data model after a second source was added. Two rows are listed, the TransactionDetails workbook connection and the Timberline Journal Data SQLite connection, each with Change, Export and Remove controls, and the Add connection and Add workspace file buttons sit below.Tap or click the image to view it full screen

The model's first source also takes you straight to the Tables tab so you can look at what it holds. A second source does not: select the Tables tab yourself to browse it. When a model has several SQL sources, the Tables tab groups the tables under a folder for each source.

How each source is named#

You do not name a source in the model. Reportworq shows the name it already has:

Kind Shown as To rename it
Connection The connection's name from Integrations Rename the connection in Integrations. Every model that reads it shows the new name.
Workspace file The file's path in the workspace, for example Data/Sales.xlsx Rename or move the file, then use Change… on the source's row to point the model at it again.

Where the names appear:

View names are shared across the whole model. Two views can read different sources, but they cannot have the same name: the Excel add-in and every report binding find a view by its name within the model. If you rename a view to a name already taken, the rename is refused with A view named “<name>” already exists. View names must be unique. Use the source in the name when it helps, such as Actuals and Forecast.

Add a view of a source#

Each view reads exactly one source, and that source decides the editor you get: the table designer for a SQL database or a workspace file, the cube view editor for Planning Analytics, and each connector's own query settings otherwise.

  1. Select + Add beside Source in the rail. The Add a view of… list has one entry per source, then Joined view.
  2. Choose a source. The new view opens on its Design (or Connection) tab, named New View (or New View 2, and so on).
  3. Build the view and set its visibility. A new view starts Hidden. See Build a view with the designer and View visibility.

If the model has no source yet, + Add offers Add a source first…, which opens the Sources tab.

When each source is used#

Reportworq reads a source only when something needs one of its views.

From several sources to a joined view#

Several sources become one result in a joined view, a view whose inputs are other views of the model. The usual path:

  1. Add each source and build a view on each (a Sales Details view of the workbook and a Forecast view of the planning cube, for example).
  2. Select + Add > Joined view, pick one view to start from and add the related view.
  3. Relate them on a field they share, check the match with Test match and save.

The joined view is the one you set to Public for report authors. The input views can stay Hidden. The whole walkthrough is in Join views across sources.

Change or remove a source#

Notes and limits#

Going deeper. To combine views of different sources, see Join views across sources. To start from a single file, see Build a data model from a workspace file. For everything the model editor does, see Data models.

Feedback on this page

Comments, questions, requests, or something missing or unclear? Email us - the page you are on is filled in for you.

Email feedback on this page

Or write to support@reportworq.com directly.