Creating Summary Tables

A summary table consists of specific analysis objects (such as members) and related statistical metrics. The metrics included in a summary table all have the same level of granularity (such as members). A summary table provides users with all of the available statistics on themed data (such as a member theme market), sorted by levels of granularity.

Prerequisites

Before creating a summary table, ensure that you have created, published, and reviewed dimensions, dimension tables, fact tables, and derivative metrics.

Creating and Publishing a Summary Table

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  2. Click Data Design of the corresponding workspace to access the Data Design console.
  3. Choose Dimensional Modeling from the left navigation bar. On the displayed page, click the Summary Tables tab.
  4. Select a subject from the subject tree on the left and click Create.
  5. On the Create Summary Table page, perform the following operations:
    1. Set the parameters in the Basic Configuration area.
      Figure 1 Basic Configuration area
      Table 1 Parameters of the Basic Configuration area

      Parameter

      Description

      Subject

      Click Select to select a subject catalog (subject area group > subject area > business object) where you can place the summary table.

      Name

      The name of the table you created. Only letters, digits, and underscores (_) are allowed. Table names must start with letters.

      Code

      The code of the table you created. Only letters, digits, and underscores (_) are allowed. Table names must start with letters.

      Statistical Dimension

      Select a statistical dimension. The drop-down list displays only the statistical dimensions configured on the Derivative Metrics page.

      After a summary table is created, all dimension attributes of the specified dimensions are automatically added to the summary table as fields in the summary table. After creating a summary table, go to the summary table page and click the table name to view the field details in the table.

      Data Connection Type

      The parameter value must be the same as that of the dimension table and fact table.

      Data Connection

      It is recommended that a same data connection be used for dimension modeling.

      Database

      The name of the database. Select a database from the drop-down list.

      Queue

      DLI queue. This parameter is displayed only for DLI data connections.

      Schema

      This parameter is displayed only for DWS data connections.

      Table Type

      This parameter is displayed only for DWS data connections. The options are:

      • DWS_ROW indicates that tables are stored to disk partitions by row.
      • DWS_COLUMN indicates that tables are stored to disk partitions by column.

      DISTRIBUTE BY

      This parameter is displayed only for DWS data connections. Currently, only REPLICATION and HASH are supported.

      • REPLICATION: A full table is stored on each DN. The advantage of this option is that each DN has all the data of a table. During the join operation, data redistribution can be avoided, reducing network overhead. The disadvantage is that each DN retains the complete data of a table, resulting in data redundancy. Generally, this option is recommended for small dimension tables.
      • HASH: If you select this option, you need to specify a distribution key for the user table. When a record is inserted, the system performs hash computing based on values in the distribute keys and then stores data on the corresponding DN. In a Hash table, I/O resources on each node can be used during data read/write, which improves the read/write speed of a table. Generally, this option is recommended for large dimension tables (a large dimension table contains over 1 million records).

      Owner

      Select an asset owner from the drop-down list. Only the workspace administrator or developer can be set as the owner.

      Description

      A description of the summary table to be created. Up to 600 characters are supported.

    2. In the Time Partition area, enter the field code and select the data type. After a table is published, data is written to the table based on the time partition fields.
      Figure 2 Time Period Configuration area
    3. In the Metric Configuration area, click Add to add derivative or compound metrics that are associated with the specified statistical dimensions.
      Figure 3 Metric Configuration area
  6. Click Save and Publish. In the displayed dialogue box, click Confirm.
  7. Select a reviewer to approve the summary table.

    After the summary table is approved, it is automatically created in the database.

  8. Go back to the summary table list and locate the table just published. View its synchronization status in the Sync Status column.
    • If the synchronization is successful, the summary table is successfully published and created in the database.
    • If the synchronization failed, choose More > View Publish History in the row where the summary table is located. On the displayed page, click the Publish Log tab to view logs. Troubleshoot the problem based on the logs. After the error is rectified, choose More > Synchronize above the summary table list to issue the synchronization command again. If the problem persists, contact technical support personnel.

Managing a Summary Table

  1. Choose Dimensional Modeling from the left navigation bar and click the Summary Tables tab.
    Figure 4 Summary Tables page
  2. Manage your summary tables as required. Refer to the following table for details.

    Operation

    Helpful Link

    Create

    Refer to step Creating and Publishing a Summary Table for details.

    Edit

    Refer to step 3 for details.

    Publish

    Refer to step 4 for details.

    View Publish History

    Refer to step 5 for details.

    Preview SQL

    Refer to step 6 for details.

    Suspend

    Refer to step 7 for details.

    Associate Rule

    Refer to step 8 for details.

    Delete

    Refer to step 9 for details.

  3. Edit a summary table.
    1. Click Edit to the right of the summary table you want to edit. The page for editing the summary table is displayed.
    2. Edit the summary table as required.
    3. Click Publish.
  4. Publish a summary table.
    1. Click Publish to the right of the summary table you want to publish. The Submit for Publishing dialog box is displayed.
    2. Select a reviewer from the drop-down list.
    3. Click Confirm.
  5. View the publish history.
    1. Select a summary table in the list and choose More > View Publish History on the right.
    2. On the displayed page, you can view the publish history and version comparison information of the summary table.

      If the publish log includes error logs, the publishing has failed. You can click Resynchronize to retry.

  6. Previewing a SQL statement.
    1. Select a summary table in the list and choose More > Preview SQL on the right.
    2. On the displayed page, you can view or copy the SQL statement.
  7. Suspend a summary table.
    1. Click Suspend to the right of the summary table you want to suspend. The Submit for Suspension dialog box is displayed.
    2. Select a reviewer from the drop-down list.
    3. Click Confirm.
  8. Associate a summary table with a quality rule.
    1. In the summary table list, select the summary table you want to associate with a quality rule and click Associate Rule above the summary table list. The Associate Quality Rule dialog box is displayed.
    2. In the Associate Quality Rule dialog box, you can add rules to the fields in the summary table in batches and associate the rules with the fields.
    3. Click OK.
  9. Delete a summary table.
    1. Select the summary table to be deleted and click Delete in the upper left corner. The Delete Summary Table dialog box is displayed.
    2. Click OK.

Associating a Summary Table with a Quality Rule

  1. On the Data Design console, choose Dimensional Modeling from the left navigation bar.
  2. Click the Summary Tables tab.
  3. In the summary table list, click the name of the summary table you want to associate with a quality rule. Click Associate Rule.
    Figure 5 Associating with a quality rule
  4. On the displayed page, set parameters as prompt. After the configuration is completed, click OK.
    Figure 6 Associating a summary table with a quality rule

    Generate Anomaly Data: If this option is selected, anomaly data is stored in the specified database based on the configured parameters.

Associating a Summary Table Field with a Data Standard

  1. On the Data Design console, choose Dimensional Modeling from the left navigation bar.
  2. Click the Summary Tables tab.
  3. In the summary table list, click the name of the summary table you want to associate with a data standard.
  4. In the table field list on the details page of the summary table, search for the field you want to associate with a data standard, click corresponding to the field to configure the association between the field and the data standard.
    Figure 7 Associating a summary table field with a data standard
  5. After the configuration is complete, click OK. For details on the sources of data standards, see Creating a Data Standard.
    Figure 8 Associating a data standard

Associating a Single Table Field with a Quality Rule

  1. On the Data Design console, choose Dimensional Modeling from the left navigation bar.
  2. Click the Summary Tables tab.
  3. In the summary table list, click the name of the summary table you want to associate with a data standard.
  4. In the table field list on the details page of the summary table, locate the target field and click to associate the field with a quality rule.
    Figure 9 Associating a single table field with a quality rule
  5. After the configuration is complete, click OK.
    Figure 10 Associating a quality rule

Associating Table Fields with Quality Rules in Batches

  1. On the Data Design console, choose Dimensional Modeling from the left navigation bar.
  2. Click the Summary Tables tab.
  3. In the summary table list, click the name of the summary table you want to associate with a data standard.
  4. In the table field list on the details page of the summary table, select the table fields you want to associate with quality rules and click Associate Rule.
    Figure 11 Associating table fields with quality rules
  5. On the page that is displayed, add rules and set rule parameters.
    Figure 12 Adding rules
  6. After the configuration is complete, click OK.