Table of Contents

Search

  1. Preface
  2. Introduction
  3. Accessing Data Archive
  4. Working with Data Archive
  5. Scheduling Jobs
  6. Viewing the Dashboard
  7. Creating Data Archive Projects
  8. Salesforce Archiving
  9. SAP Application Retirement
  10. Creating Retirement Archive Projects
  11. Integrated Validation for Archive and Retirement Projects
  12. Retention Management
  13. External Attachments
  14. Data Archive Restore
  15. Data Discovery Portal
  16. Data Visualization
  17. Data Privacy
  18. Oracle E-Business Suite Retirement Reports
  19. JD Edwards Enterprise Retirement Reports
  20. Oracle PeopleSoft Applications Retirement Reports
  21. Language Settings
  22. Data Vault Datatype Conversion
  23. Special Characters in Data Vault
  24. SAP Application Retirement Supported HR Clusters
  25. Glossary

Parameter Filters

Parameter Filters

You can add parameter filters to a report to make it more interactive. Use a parameter filter to show records with the same parameter value. To add parameter filters on a report, you must insert a prompt in the SQL query you use to create the report.
Add a parameter prompt for each parameter you want to filter on. For example, you want to create a report based on employee details that includes the manager and department ID. You want to give users the flexibility to display a list of employees reporting to any given manager or department. To add filters for manager and department IDs, you must use placeholder parameters in the SQL query for both the manager and department ID variables.
The placeholder parameter must be in the following format:
@P_<DataType>_<Prompt>
<DataType>
Specify a datatype. Use one of the following values:
  • Integer
  • Number
  • String
  • Decimal
If you do not specify a datatype, the parameter will be assigned the default datatype, string.
Date, time, and datetime data types must be converted to string datatypes in the SQL query. Convert data with a date, time, or datetime datatype to a string datatype in one of the following ways:
  • Use the format
    @P_<Prompt>
    where the
    <DataType>
    value is not specified. The parameter values will be treated as string by default.
  • Add the
    char()>
    function to convert the parameter to string. The complete format is:
    char(<column name>)>@P_<DataType>_<Prompt>
<Prompt>
Represents the label for the parameter filter. Do not use spaces or special characters in the
<Prompt>
value.

Example

The SQL query to add parameter filters for manager and department IDs has the following format:
select * from employees where manager_id =@P_Integer_MgrId and Department_id =@P_Integer_DeptId
When you run a report, you can choose to filter data by manager ID and department ID. The following image shows the filter lists for
MgrId
and
DeptId
: .
The report displays details of employees associated with the manager and department you selected.
You will also see the
MgrId
and
DeptId
filters in the Parameters section on the
Report
page.

LIKE Operators

For information about using the
LIKE
operator as a parameter filter, see the
Informatica Data Vault SQL Reference
.

0 COMMENTS

We’d like to hear from you!