Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Access Policy transformation
  6. Aggregator transformation
  7. B2B transformation
  8. Chunking transformation
  9. Cleanse transformation
  10. Data Masking transformation
  11. Data Services transformation
  12. Deduplicate transformation
  13. Expression transformation
  14. Filter transformation
  15. Hierarchy Builder transformation
  16. Hierarchy Parser transformation
  17. Hierarchy Processor transformation
  18. Input transformation
  19. Java transformation
  20. Java transformation API reference
  21. Joiner transformation
  22. Labeler transformation
  23. Lookup transformation
  24. Machine Learning transformation
  25. Mapplet transformation
  26. Normalizer transformation
  27. Output transformation
  28. Parse transformation
  29. Python transformation
  30. Rank transformation
  31. Router transformation
  32. Rule Specification transformation
  33. Sequence transformation
  34. Sorter transformation
  35. SQL transformation
  36. Structure Parser transformation
  37. Transaction Control transformation
  38. Union transformation
  39. Vector Embedding transformation
  40. Velocity transformation
  41. Verifier transformation
  42. Web Services transformation

Transformations

Transformations

Source filtering and sorting

Source filtering and sorting

You can configure the Source transformation to filter or sort data before the data enters the data flow. Use the source query options to filter or sort source data.
Configure the query options on the
Source
tab of the Source transformation. Expand the
Query Options
section, and configure the filter and sort conditions.
You can use the following source query options:
Filter
Filter source data to limit the amount of source data that enters the data flow. You can create the following types of filters:
  • Non-parameterized. Select the source field and configure the operator and value to use in the filter. When you configure more than one filter, the task applies the filter expressions in the listed order with an AND operator between the filters.
  • Completely parameterized. Use a parameter for a filter expression and define the filter expression in the task.
  • Advanced. Create complex expressions that use AND, OR, or nested conditions. The expression that you enter becomes the WHERE clause in the query used to retrieve records from the source. You can use source fields, input and in-out parameters, or system variables in the expression.
    For example, you can use an input parameter for one of the fields, and select it when the task runs. You can reuse the same parameter in an Expression transformation to create a field expression and also in the Target transformation. Or, you can use an in-out parameter in the expression to retrieve rows that have been updated since the last run.
    For more information about system variables, see
    Function Reference
    . For more information about parameters, see
    Mappings
    .
    You can convert simple non-parameterized data filters to an advanced data filter, but you cannot convert an advanced data filter to simple data filters.
Sort
You can sort source data to provide sorted data to the mapping. For example, you can improve task performance when you provide sorted data to an Aggregator transformation that uses sorted data.
When you sort data, you select one or more source fields. When you select more than one source field, the task sorts the fields in the listed order.
Data in each field is sorted in ascending order. If you want to sort in descending order, you can use the Sorter transformation.
You can use parameters for the sort fields and define the sort fields in the task.

0 COMMENTS

We’d like to hear from you!
Sam Greene - August 17, 2022

I would appreciate more documentation on the advanced filter option.  My use case is checking a destination table for the max date and then querying a source table to find data newer than my max date.  What syntax is valid in the advanced editor, could I used a unconnected lookup and reference the value.  The advanced editor doesn't have the same reference functionality as the expression builder, so it is difficult to tell what is possible. 

Informatica Documentation Team - August 17, 2022

​​​​​​​Hi Sam Greene. There is some additional information about advanced filters in the topic Data Filters in Tasks. We’re working to address the comments you entered about your use case and about adding additional information to this section of the documentation and will get back to you. Thanks, Informatica Documentation team


Informatica Documentation Team - August 20, 2022

Hi again Sam Greene. We've checked with our QA team and they recommend that you use an in-out parameter to store the max date for data that has been loaded to the target during each mapping run. In-out parameters can be used in a Filter transformation or in the source filter to ensure that you are only reading rows that were not processed during the previous mapping run. You can find more information about in-out parameters in the "In-out parameters" topic in Mappings. Using an unconnected lookup is probably not the best approach in this case since your source data is not static.

If you need further help with your specific use case, please reach out to Informatica Global Customer Support.

We will file a documentation enhancement request to add more information about valid syntax in the advanced filter editor.

Thanks, Informatica Documentation team