Creating General Filters

Atomic metrics are standard definitions for computing logic. General filters are standard definitions for conditional limits. To ensure that all statistical metrics are unified, standard, and unambiguous, these general filters must be unique within a business domain and each general filter can only belong to only a single source logic table. The computing logic is defined based on the fields of the source logic table model. A general filter may come from multiple logic tables that belong to different data domains. Therefore, a general filter may belong to multiple data domains as well.

Creating and Publishing a General Filter

Before creating a general filter, ensure that you have created, published, and reviewed dimension tables, fact tables, and general filter groups.

  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 Technical Metrics from the left navigation bar. On the displayed page, click the General Filters tab.
  4. On the General Filters tab, click Create.
  5. Set the parameters shown in the following figure and click Save and Publish.
    Figure 1 Creating a general filter
    Table 1 Parameters for creating general filters

    Parameter

    Description

    Name

    Only letters, digits, and underscores (_) are allowed. General filter names must start with letters.

    Code

    Only letters, digits, and underscores (_) are allowed. General filter codes must start with letters.

    General Filter Group

    Select a general filter from the drop-down list. If you have not created a general filter, click Create.

    Associated Field

    Select the required fields to be associated and set the filtering scope.

    You can set the filtering scope using one of the following methods:

    • Selecting from the lookup table: You can select a value from the created lookup table.
    • Selecting from the list of custom values: You can add one or more custom values.
    • Selecting from the existing values: You can select one or more values from the existing values.

    Click to filter out a scope that is displayed as NOT IN in the generated SQL statement. Click again to not filter out this scope. That is, the filter scope is restored as IN in the generated SQL statement.

    Description

    A description of the general filter to be created. Up to 490 characters are supported.

  6. Then, click Save and Publish to submit the application.
  7. (Optional) Create and publish other general filters by repeating steps 5 to 8.
  8. Wait for the reviewer to approve the application.

    If the application is approved, the general filter is created.

Managing a General Filter

  1. On the Data Design console, choose Technical Metrics from the left navigation bar and click the General Filters tab.
    Figure 2 General Filters tab
  2. Manage your general filters as required. Refer to the following table for details.

    Operation

    Helpful Link

    Create

    Refer to step Creating and Publishing a General Filter for details.

    Edit

    Refer to step 3 for details.

    Publish

    Refer to step 4 for details.

    Suspend

    Refer to step 5 for details.

    Delete

    Refer to step 6 for details.

  3. Edit a general filter.
    1. Click Edit to the right of the general filter you want to edit. The page for editing a general filter is displayed.
    2. Edit the target general filter. Refer to step 2 for details.
    3. Click Save to save the general filter information, or click Publish to publish the general filter.
  4. Publish a general filter.
    1. Click Publish to the right of the general filter 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. Suspend a general filter.
    1. Click Suspend to the right of the general filter you want to suspend. The Submit for Suspension dialog box is displayed.
    2. Select a reviewer from the drop-down list.
    3. Click Confirm.
      1. A general filter cannot be suspended or deleted if it is referenced to any derivative metrics.
  6. Delete a general filter.
    1. Select the general filter to be deleted and click Delete in the upper left corner. The Delete General Filter dialog box is displayed.
    2. Click OK.