Skip to main content

Group Builder

image1.png

Left Panel

The left panel of the Data Group Builder displays the connector name selected from the previous dialog (Project Explorer Connector Groups or Template Studio Data Connections) along with a list of existing data groups configured for that connector.

Note that if the Data Group Builder is launched from the Template Studio, on close, the selected data group in the list is returned and set as the Source Name for the Data Connection.

Filtering

The Filter by name option allows filtering the list of existing data groups. This filter acts as a “starts with” filter. For example, if Process is entered, any data group that starts with Process is shown.

Clear the text in the setting to see the complete list of data groups.

Controls

  • Add image2.png

    Click the Add button to add a new data group for the connector.

    image3.png

    Specify a Name, select the Group type and click OK to create the new group. The following groups types may be available depending on what the historian supports:

    • Summary Values from Server

      Summary values are calculated by the Server e.g., flow average for each hour of the day.

    • Summary Values from XLReporter (Time Weighted)

      Summary values are calculated by XLReporter. Calculations will be weighted across the interval if values are not returned equally spaced (see XLReporter Calculations).

    • Summary Values from XLReporter (Raw)

      Summary values are calculated by XLReporter. Calculations will be based on raw values with no weighing of samples is they are not equally spaced (see XLReporter Calculations).

    • Raw Values

      Numeric values from the Server.

    • Raw Text

      Text values from the Server.

    • Sample Values

      Sampled values interpolated from Server.

    • Live Values

      Live values from the Server.

    • Custom Values

      Custom values queried from any table/view in the historian database. This launches the Database Data Group. This option is only available when the historian is a relational database like Microsoft SQL Server or MySQL.

  • Copy image4.png

    Click the Copy button to copy the selected data group. You are prompted for a Name for this new group. Click OK to create this new group using the settings of the selected group.

  • Delete image5.png

    Click the Delete button to delete the selected data group.

Show

The Show option defines how the list of existing data groups is shown.

  • List

    Existing data groups are displayed as a single list.

  • By Type

    image6.png

    Existing data groups are listed under the Type they are set for.

Description

At the top right of the data group is where a description for the group can be set. This is optional and provided to help document the purpose and usage of the data group.

Items Tab

Time Period

Report Date

image7.png
  • Duration

    The overall duration to retrieve historical data.

  • Anchor

    If selected, the Report Date is anchored to a specific day of the month (if duration is in months), day of the week (if duration is in weeks) and time of day.

  • Report Time

    If selected, the Report Time is used as the start time for the time period.

Variable

image8.png
Start

The Start Date and Start Time for the group. These are typically set as variables that can be selected using the browse buttons provided.

If the variable set for Start Date will contain both the date and time, check Date includes Time.

Note that the Start Time can be set to a fixed time like 00:00:00 so that only the date is prompted at runtime.

End
  • Time

    This defines the End Date and the End Time as variables that can be selected using the browse buttons provided.

    If the variable set for End Date will contain both the date and time, check Date includes Time.

    Note that the End Time can be set to a fixed time like 00:00:00 so that only the date is prompted at runtime.

  • Duration

    This defines the End Date and End Time as a duration from the Start Date and Start Time.

Interval

Note, this setting is only available for Summary Values groups (those that return calculated values).

This setting determines the number of intervals over which each calculation is performed.

  • Time Slice

    The interval is a set of time slices across the overall time period.

  • Count

    The interval is a count divided equally into the overall time period.

Limit

Note, this setting is only available for Raw groups (those that return raw values or text).

This setting determines if the returned data set from the data group is limited or not.

  • Top

    The data set is limited to the top X records where X is the number specified.

  • None

    The data set is not limited at all, every raw record from the historian over the entire time period is returned.

Time Ordering

This determines how the returned data set from the data group is ordered based on the timestamp of the record, either Ascending (oldest to newest) or Descending (newest to oldest).

Tag List

image9.png

The tag list displays every tag that is selected for the group.

Browsing and Selecting Tag Names

To add an tag, select a cell in the Name column, and click the browse button (…) to open the item browser. A Name can be one of three choices:

  • Literal name: Actual name of the tag (as configured in the data source). A literal name can be selected from the Online browser or from a Catalog.

  • Variable name: A variable tag is a placeholder that is assigned a literal tag name at the runtime of a report. Variable names can be selected from the Variables branch of the tag browser and can be a User-Defined or a Register variable. User defined variables are not limited to the {Tag X} syntax – these can be assigned to any expression, e.g. {Temperature} or {Pressure} by typing in the name.

  • Static Variable name: Fixed text.

Note

Variables (displayed in {}) provide a way to assign the tag names externally, e.g., when the group is used on-demand, the item name is specified.

Static Variables (displayed in *{}) are considered fixed text for display only and are not used for data retrieval. Select Treat as Text to configure.

For group types that perform calculations, the calculation is performed over each Interval of the Period specified in the Time Period tab.

The list of calculations is either specific to the Server or those provided by XLReporter (see XLReporter Calculations).

Calcuation

The Calculation for each row can be changed by clicking into the cell. This launches the calculation browser where you can select any available calculation.

Scaling

The tag value returned by a data group can be Scaled using a Numeric formula or limit Conditions.

Numeric
image7.png

Up to 3 numeric conditions can be specified to scale the tag value.

Examples:

  1. An item contains the flow rate in gallons/minute. To calculate the total flow in MGD perform an average on the item value and then scale with *1440/1000000.

  2. An item contains the temperature in Fahrenheit. To convert to Celsius scale, use the formula:

    -32*5/9.

Formula
image8.png

Condition scaling provides up to three Limits that provide up to three ways the value can be scaled. The scaling supported are:

  • Specific Value

  • Column Value

  • Column Value that has an applied Formula

Examples:

  1. When an item value is below 0.001, display the text negligible otherwise show the value.

  2. When an item value is below 100, display blank otherwise scale the value by 1000.

  3. A digital item contains the state of a pump. When the value is less than 0.5 display OFF, otherwise ON.

  4. An item contains the temperature of an oven. Display LOW, MEDIUM, and HIGH at specified temperature thresholds.

Heading

If the Headings section under Additional Options is set to Shown at Design Time or Shown at Runtime, up to two headers can be included in the output of the group. To change a heading, select the cell in the Heading column and click the browse pushbutton […].

image9.png

Headings can be fixed text, a Variable, or a combination of both. A variable would normally be used when the item name is also a variable.

When a Variable is used, substrings can be created using the Parse Mode.

image10.png

The following options are available:

  • Before

    Substring contains all the characters before the Start character.

  • After

    Substring contains all the characters after the End character.

  • Between

    Substring contains all the characters between the Start the End character.

The Include start character option includes the start character as part of the parsed text.

Controls

  • Add image2.png

    Click to add a new row below the selected row in the tag list. If no row is selected, new row is added to the bottom.

    Once the row is added, the tag browser automatically opens to select a tag to add.

  • Empty Row image11.png

    Click to add an empty row below the selected row in the tag list. If no row is selected, new empty row is added to the bottom. Empty rows translate to empty columns (or rows depending on Tag Orientation) in the returned data set from the data group.

  • Delete image5.png

    Click to delete the selected row in the tag list.

  • Up/Down image12.png

    Click to move the selected row up or down in the tag list.

Find & Replace

find_and_replace.png

This option provides the ability to find and replace text in the tag list for mass editing purposes.

Additional Options

image14.png

Tag Orientation

  • By Column

    If selected, the data set returned from this data group is orientated with each selected tag (or empty row) in the tag list as a column.

  • By Row

    If selected, the data set returned from this data group is orientated with each selected tag (or empty row) in the tag list as a row.

Include timestamp

If unchecked, no timestamp is returned in the data set for this data group. If checked, the following options are available:

  • First Tag

    The timestamp is returned as the first column or row (depending on the Tag Orientation) in the data set from this data group.

  • All Tags

    The timestamp is returned as the a column or row (depending on the Tag Orientation) for each selected tag in the data set from this data group.

Empty Rows/Columns

If unchecked, the data set returned from this data group is contiguous. If checked, specify the number of empty rows or columns between each record of the data set (rows or columns depending on the Tag Orientation set).

Headings

  • Not Shown

    If selected, headings set in the tag list are basically disregarded.

  • Shown at Design Time

    If selected, headings set in the tag list are added to the report template when the data connections are saved.

    Note that headings are written in the rows above (or columns to the left depending on Tag Orientation) the Target Cell specified for the data connection. Headings are only written if these cells are empty, otherwise the heading in the group is disregarded.

  • Shown at Runtime

    If selected, headings set in the tag list are added to the report when the report is generated from the template and the data set from this data group is written to the report.

    Note that headings are written starting at the Target Cell specified for the data connection.

Advanced Tab

Retrieval

The Retrieval setting is provided for Summary Values from XLReporter group types to define how the values from the historian are retrieved in order to derive the calculations.

Mode

  • Sampled Values

    Interpolated samples are requested from the historian.

    Note, not all historians support interpolated sampling.

  • Raw Values

    Raw samples are requested from the historian.

Rate

The interval rate of sampled values returned from the historian.

Note this option is only available if Mode is Sampled Values.

Lead Time

The amount of time subtracted from the start of the time period from which to request data. For time weighted calculations, this can is used to propagate a value forward if there is not one recorded at the exact start of the time period.

Bounds & Endpoints

image18.png

Note, these settings are only avaiable with Summary Values and Sampled Values groups.

Bounds

The Bounds to include determines whether the Next, Previous, or Both intervals are included in the samples returned over the time period. By default, this setting is set to None.

  • None

    Only Intervals within the specified Time Period are returned.

  • Previous

    The previous interval is returned as the first record of the data group e.g., if the Time Period is configured as Duration 1 Day, Anchor 00:00:00 Interval Time Slice 1 hour, then the last hour of the previous day is returned before the values for the current day are returned.

  • Next

    The next interval after the end time is returned as the last record of the data group e.g., if the Time Period is configured as Duration 1 Day, Anchor 00:00:00 Interval Time Slice 1 hour, then the 01:00:00 hour of the next day is returned after the values for the current day are returned.

  • Previous and Next

    Both the previous interval and the next interval after the end time are returned with the intervals contained within the period. e.g., if the Time Period is configured as Duration 1 Day, Anchor 00:00:00 Interval Time Slice 1 hour, then the last hour of the previous day is returned before AND the 01:00:00 hour of the next day is returned after the values for the current day are returned.

Endpoints

The Endpoints to include determines whether the Start Time, End Time, or both are returned with the samples. By default, this is set to Start Time.

This setting is also directly influenced by the Bounds to include dropdown list above it.

  • A Bounds to include set to None will allow full selection of the Endpoints to include options.

  • A Bounds to include set to Previous will force Endpoints to include to Start Time.

  • A Bounds to include set to Next will force Endpoints to include to End Time.

  • A Bounds to include set to Previous and Next will force Endpoints to include to Start and End Time.

The following settings for Endpoints to include are:

  • None

    Neither the start nor the end time interval is returned.

  • Start Time

    The first interval of the period returned is the interval at the start time. For example, if the Time Period is configured as Duration 1 Day, Anchor 00:00:00 Interval Time Slice 1 hour, is ran on 2026-01-01, then the 2026-01-01 00:00 record is the first record returned.

  • End Time

    The last interval of the period returned is the interval that starts at the end time. For example, if the Time Period is configured as Duration 1 Day, Anchor 00:00:00 Interval Time Slice 1 hour, is ran on 2026-01-01, then the 2026-01-02 00:00 record is the last record returned.

  • Start and End Time

    Both the start and end time intervals are returned.

Filters

image19.png

The Filters setting is provided for Summary Values from XLReporter and Raw groups. If the historian supports it, the option to pass the filter to the historian is provided and checked by default.

Filters are always applied to the underlying data so when used with a Summary Values from XLReporter group the values are filtered before the calculations are performed.

Up to 4 filter sections can be configured which are “or’d” together. Within each filter section, each filter condition is “add’d” together to build a robust data filter.

Up to 8 filter conditions can be added to a single filter section.

There is a “preview” at the bottom displaying the entire filter as configured.

Preview

To preview the data group, click the Preview image15.pngbutton.

image24.png

To preview the output of the group settings, click the Refresh button.

Multiple instances of Preview can be opened to compare data.

If the group contains Variables, they are listed in the display so that values can be specified.

Save

To save the data group, click the Save image17.png button.