Download Reportworq

This is the archived documentation for Reportworq 5. It is kept for reference and is no longer updated.

Go to the Reportworq 6 documentation

This article describes how to use the report modeling interface to edit models and how to build a temporary report.

The main topics in this article are as follows:

To access the report modeling interface:

  1. On the main Reportworq sidebar, select the Reporting Models icon. A tree list of reporting models appears.
  2. Navigate to the model you want to edit and open it for editing. The Fields view appears.
Tap or click the image to view it full screen

Previewing Data#

When you preview data, you can control the number of rows displayed and whether the data is queried from the datasource or retrieved from cache.

To preview data:

  1. Select Preview. Data rows appear.
  2. If you want to change Preview settings for future preview requests, do the following:
  1. When you are finished previewing data, select Edit to return to the previous view.

Selecting and Adding Fields#

You can select fields to include in the model. By default, all fields are included.

You can also add new fields, to be either mapped to fields from the datasource, or left unmapped so report authors can populate them via Excel formulas.

To select or deselect fields:

  1. In the Fields view, select the Field Selections button. The Edit Field Selections dialog appears. The right side lists fields that are included in the model. The left side lists fields that are not included.
  2. Move fields between the two sides as required:
  1. Select OK.

To add a new field:

  1. In the Fields view, select the Add Field button. The Field Name dialog appears.
  2. Provide a name for the new field, and then select OK. The field is added to the Fields list.
  3. Do one of the following:
Tap or click the image to view it full screen

Defining Report Filters#

Report filters are a set of grouped data filters. Only data that satisfies all filters is made available to report authors.

The set of report filters contains one or more filter groups, each of which contains one or more field filters. A logical operator (And or Or) is applied within each filter group. Another logical operator is applied to the overall set of groups.

Tip: Filters can also be applied as field properties of individual fields.

To define report filters:

  1. Select the Report Filters button. The Edit Report Filters dialog appears. Tip: A dashed rectangle outlines each group of filters.
  2. From the Add Field list, select a field you want to filter. A filter expression box appears. The field name appears above it.
  3. Define the first filter expression by selecting a comparison operator and specifying a test value. In the following example, the filter requires the data value to be greater than or equal to 5. If the test value is text, enclose it in single quotes as shown below: The test value can be a variable. To declare a variable, enclose the {{variable name}} in double curly braces. In the following example, the test value is a variable named myVar.
  4. If the filter group requires additional filter expressions, select Add Field and then select a logical operator at the top of the filter group:
  1. Define additional filter expressions within the group as required.
  2. If the filter set requires another group of filters:
  1. Continue to add and define filter groups as required. The following example has two groups.
  2. When you are finished defining the filter set, select OK. The filter editor closes. Above the Fields list, the Report Filters icon is dark to indicate that report filters are defined.

Editing Field Properties#

The Fields view contains metadata about each data field in the model.

Tap or click the image to view it full screen

IMPORTANT: After you configure field properties, select Save Changes.

Field properties are as follows:

Tap or click the image to view it full screen

To define a field-level filter set:

  1. Define the first filter expression by selecting a comparison operator and specifying a test value. In the following example, the filter requires the data value to be greater than or equal to 5. If the test value is text, enclose it in single quotes as shown below: The test value can be a variable. In the following example, the test value is a variable named myVar.
  2. If additional filter expressions are required, select Add Filter and then select a logical operator:
  1. Define additional filter expressions as required.
  2. When you are finished defining the filter set, select OK. The filter editor closes. In the Fields list, the filter icon for the field is dark to indicate that filters are defined.

Configuring Options#

The Options pane contains additional settings related to the model.

Tap or click the image to view it full screen

Tip: If the Options pane is collapsed, expand it.

Tap or click the image to view it full screen

To configure options:

Building a Report#

You can build a temporary report in the report modeling interface, using many of the same tools report authors use in the Reportworq add-in for Excel. Building and viewing Report may help you confirm that a model contains all the data fields that report authors require.

Report building includes configuring column options and report options. Column options apply to the selected column, while report options apply to the overall report. If the same option can be set at the column level and the report level, the column-level setting takes precedence.

Note: The report cannot be exported or added to Reportworq Jobs. It exists only during the current modeling session and is not saved.

This section includes the following topics:

To access the report building interface:

  1. Select Build a Report. The Columns list appears. In the following example, the model has six columns. Tip: To close the report builder, select Back to Model.
  2. If you want to switch to the Report Options view, select the gear icon. Tip: To switch to the Columns list, close the Report Options view.

Refreshing the Report#

You can refresh the report from cached data or from source data.

To refresh the report:

  1. Near the top of the interface, expand the refresh menu and select a refresh option:

The following figure shows a refreshed report.

Tap or click the image to view it full screen

Choosing Fields for the Report#

You can choose which fields from the underlying data model are available to be later included as columns in the report. Choosing only the required fields reduces the volume of queries sent to the underlying datasource and improves performance.

To choose fields:

  1. Above the Columns list, select the fields icon. The Choose Fields list appears.
  2. Select the fields you need for the report. This includes visible fields as well as hidden fields required for filter queries.
  3. Close the Choose Fields list (x) to return to the Columns list.

Editing Column Options#

Column options define which columns and data appear in the report, and the visual appearance of each column's contents.

The figure below shows the Columns list for a report named Products.

Tap or click the image to view it full screen

Selecting and Reordering Columns#

You can select which columns appear in the report and arrange the order of the columns.

To select columns:

To reorder columns:

  1. Hover over the dots beside a column that you want to move. The drag icon appears.
  2. Select and drag the column to the desired position in the list.

Formatting Columns#

Each column is formatted individually. Format options include:

To access the format options for a column:

Header Options

Tap or click the image to view it full screen

The Header tab contains the following options:

Data Options

Tap or click the image to view it full screen

The Data tab contains the following options:

To define filters for the current column:

  1. Select Add Filter.
  2. Define the first filter expression by selecting a comparison operator and specifying a test value. In the following example, the filter requires the data value to be greater than or equal to 5. If the test value is text, enclose it in single quotes as shown below: The test value can be a variable. In the following example, the test value is a variable named myVar.
  3. If additional filter expressions are required, select Add Filter and then select a logical operator:
  1. Define additional filter expressions as required.

Formatting Options

The Formatting tab enables you to define the visual appearance of cells for the current column.

Tap or click the image to view it full screen

To format column contents:

  1. Select an icon to select what type of cells to configure:
  1. From the Format Mode list, select one of the following:

Editing Report Options#

Report options apply to the overall report, rather than individual columns. For options that can be set at both the report level and at the column level, the column level settings override those set at the report level.

To access report options:

Data Tab#

The Data tab enables you to control what data appears in the report.

Tap or click the image to view it full screen

Data tab options are as follows:

Tap or click the image to view it full screen

Tip: You can also define filters for individual columns, on the Data tab of their Column Options.

To define report-level filters:

  1. In the Filters area of the Data tab, expand the + list and select a column you want to filter. A filter expression box appears. The field name appears above it. Tip: A dashed rectangle outlines each group of filters.
  2. Define the first filter expression by selecting a comparison operator and specifying a test value. In the following example, the filter requires the data value to be greater than or equal to 5. If the test value is text, enclose it in single quotes as shown below: The test value can be a variable. To declare a variable, enclose the {{variable name}} in double curly braces. In the following example, the test value is a variable named myVar.
  3. If the filter group requires additional filter expressions, expand the + list and select a column, then select a logical operator at the top of the filter group:
  1. Define additional filter expressions within the group as required.
  2. If the filter set requires another group of filters:
  1. Continue to add and define filter groups as required. The following example has two groups.
Tap or click the image to view it full screen

Formatting Tab#

The Formatting tab enables you to define the default visual appearance of cells in the report. These defaults can be overridden by individual column formats.

Tap or click the image to view it full screen

To format report contents:

  1. Select an icon to select the type of cells to configure:
  1. From the Format Mode list, select one of the following:

Variables Tab#

The Variables tab lists all Reportworq variables applicable to the report.

Tap or click the image to view it full screen

Each variable is part of a filter definition for a filter applied at the report level, the column level, or in the underlying reporting model. Only data that satisfies all filters is included in the report output.

Note: All variables must be assigned values in order to run the report or refresh the report.

To assign a value to a variable:

  1. From the list, select Text as the type of variable value.
  2. Type the text in the box.
  3. Clear or select the Allow blank values checkbox:

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.