Table of Contents

Search

  1. Preface
  2. Introduction to Data Integration Hub
  3. Catalog
  4. Applications
  5. Topics
  6. Creating Topics
  7. Topic Properties
  8. Publications
  9. Creating Publications
  10. Publication Properties
  11. Subscriptions
  12. Creating Subscriptions
  13. Subscription Properties
  14. Events and Event Monitoring
  15. Dashboard and Reports
  16. Glossary

Operator Guide

Operator Guide

Step 7. Define a Filter

Step 7. Define a Filter

Define the data that the subscription consumes by setting filter conditions on table columns in the
Filter
page of the subscription wizard.
If data relations are defined for the topic to which the subscription subscribes, filters are applied to the tables for which the relations are defined, and the subscriber consumes only the data that is defined by the data relations.
You can use basic expressions and advanced expressions to define filter conditions. You can use more than one method to add filters to a table row.
Basic Expression
Use this method if you want to apply a condition to a table row and the operators and values in the basic condition builder meet your requirements. For example, for an Orders table, add a condition that the date in the ShippedDate column is greater than April 1, 2015.
Advanced Expression
Add filter conditions to tables with PowerCenter expressions. For example, for an Orders table, add the following expression:
(ShipCountry=’USA’) and ((ShipCity=’New York’) or (ShipCity=’Los Angeles’))
The filters use an AND logic. If multiple filters exist for a table,
Data Integration Hub
writes only the rows that meet all of the conditions to the target.
  1. Choose the type of expression that you want to create.
  2. Select the table to which to apply the filter from the
    Select Table
    list.
  3. Enter the condition parameters according to the method that you selected:
    • Basic expression: go to step 4.
    • Advanced expression: go to step 5 .
  4. To create a basic expression, perform the following steps:
    1. Select the column to filter from the
      Select Column
      list.
    2. Select the filter operator from the
      Select Operator
      list.
      The available operators depend on the type of content in the column.
    3. When
      Select Value
      is enabled, select or enter a value for the operator.
      Values of string operators can contain up to 90 digits. Values of numeric operators can contain up to 15 digits.
    4. Click the plus icon to the right of the expression line.
    The condition shows in the condition list.
  5. To create an advanced expression, perform the following steps:
    1. Enter a valid PowerCenter expression in the text field. Alternatively, prepare a basic expression, select
      Advanced Expression
      , and then, in the expression text area, complete the expression.
      The expression is limited to the selected table. The expression can contain up to 1024 characters.
    2. Click the plus icon to the right of the expression line.
    The condition shows in the condition list.
  6. Repeat steps 1 through 5 to add the required conditions.
  7. Click
    Next
    .
    The
    Schedule
    page appears.

0 COMMENTS

We’d like to hear from you!