What's new ⬇ Download Reportworq
⬇ Guide PDF

Data models#

A data model is a reusable, governed layer between a source system and the people who build reports. It binds a datasource to one or more curated views, and those views are what report authors import when they build Excel Reports in the Excel add-in. A model lets you rename and reshape source columns into clean business fields once, so every report reads from a stable vocabulary that survives changes to the underlying source schema.

A model feeds two downstream workflows, not just reporting: Distribution Jobs (template-based output) and Contribution Campaigns (input forms). A contribution form binds to a model view the same way a report does, so curate a model as a shared vocabulary, not just a report source.

Modeling a single workbook or database that lives in this workspace? You do not need a datasource connection at all. See Build a data model from a workspace file - it is the quickest way to get from a file in your workspace to a working model, with nothing added to Integrations.

Before you begin#

The model editor at a glance#

A model is edited in the workspace. The rail on the left lists the model's Source and each of its views, with Add View below them. The Source entry's second line names the connection, or the workspace file, the model reads (No source until you choose one). Each view shows its name, a type, and small chips: its field count (for example 21 fields) and Draft while it is not published. The type reads Table or View for a view built on the designer from one table, Joined view with its table count (for example Joined view · 4 tables) once the designer canvas holds more than one table, and SQL Query for a view written as SQL. Select an entry to open it; your place on each screen is kept while you move between them, so you can check a table on Source and return to a half-built view without losing it.

The Connection section of a data model's Source screen on an Excel datasource. The strip under the source name offers Connection, Tables and Relationships. Under Bound datasource, a Connection or Workspace file choice, the connection menu, the Direct queries checkbox and the Database-side or Client-side Field filtering choice. The rail on the left lists Source and one view reading Table or View with its field count, with Add View below.
The Connection section of a data model's Source screen on an Excel datasource. The strip under the source name offers Connection, Tables and Relationships. Under Bound datasource, a Connection or Workspace file choice, the connection menu, the Direct queries checkbox and the Database-side or Client-side Field filtering choice. The rail on the left lists Source and one view reading Table or View with its field count, with Add View below.Tap or click the image to view it full screen

Fields follow the query. There is no button to import fields. When you leave the Design or Connection tab, and when you select Save Changes, Reportworq runs any query that changed and brings the view's fields up to date. While it runs, the view reads "Updating fields from the query". If the query cannot run yet, for example because a {{variable}} has no sample value, a warning explains why and the view reads "Fields may not match the query yet" until the next tab change or save. On the designer canvas, fields are added as you tick columns, so a designed view is always up to date.

Explore the source#

The Source screen has up to three sections, chosen from the strip under the source's name: Connection (where the model reads its data, plus Direct queries and Field filtering), and, on a SQL datasource, Tables and Relationships. Tables and Relationships share one table list, so the table you select stays selected when you switch between them. A model with no source yet opens on Connection; a connected SQL model opens on Tables.

Use Tables to find the table a view should start from, and Relationships to check how tables link before you build.

The Source screen with sales_journal selected and its rows on the Tables section
The Source screen with sales_journal selected and its rows on the Tables sectionTap or click the image to view it full screen
  1. Select Source in the rail, then Tables.
  2. Select a table in the list on the left. Use Search tables to narrow a long list.
  3. Review the table's rows. The row count under the grid shows how many rows were read, and the grid shows the first 100 of them. Tables reads at most 1,000 rows; for a larger table the count reads first 1,000.
  4. Optional: select the clipboard button to copy the rows with a header row, ready to paste into Excel, the Excel button to download them as a workbook, or the small copy icon beside the table name to copy the name.
  5. Select Relationships to see which tables the selected table links to. See Table relationships.

The refresh button reads the table again. To see more than 1,000 rows, build a view and use its Preview, which can show all rows.

Curate the fields#

The Fields tab is where a raw source becomes a governed model. Each field shows a green mapped chip or an amber unmapped chip, recomputed automatically as you edit.

Choose where filters run (filter mode)#

The Field filtering setting on the Source screen's Connection section decides where a model's field filters are evaluated. Choose Database-side or Client-side; a note beside it reads "Filters run in the source query (faster on large tables)." or "Filters run in memory after the data is fetched."

Important: pushdown is SQL-only. Non-SQL sources (Planning Analytics, the planning-tool APIs, and other non-relational connectors) always filter in memory regardless of this setting. So for a TM1 or Workday Adaptive model, filters are applied client-side whatever the mode says.

Direct queries: modeled view or direct query#

Direct queries is a checkbox on the Source screen's Connection section, labeled "Report authors can query this datasource directly", and it defaults off. Leaving it off keeps the model view-only: authors consume the curated, published views. Turning it on lets a report author query the datasource directly and bind to the query result's own columns, skipping the model's curated fields entirely.

When to use each:

Publish a view#

Each view carries a Draft or Published state, tracked per view, so one model can hold a mix of both.

  1. Build and preview the view in Draft while you are still shaping it. Draft views are hidden from report authors.
  2. Switch the view to Published when it is ready. Only published views appear in the Excel add-in's Connect picker for report authors to import.

When to use the two states together: publishing gates the picker, not existing bindings. A report already bound to a view keeps resolving even after you pull that view back to Draft, so you can safely revise a published view in Draft while the live reports keep running, then re-publish once the revision is validated.

Notes and limits#

Going deeper. To build a view on a SQL datasource, see Build a view with the designer and Table relationships. For the field labels and query types of a specific source, see Connect IBM Planning Analytics, Connect SQL Server, OLE DB, and ODBC, and the Connector catalog. To bind a model to an Excel workbook or SQLite database in this workspace with no Integrations connection, see Build a data model from a workspace file.

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.