Click the Add More Options button to add a SQL expression, Session variable, Select the Protect Filter box to protect the filters value from being overridden by a To convert the filter to SQL statements, select the Convert this filter to SQL box. When you

Filtering and Selecting Data for Analyses 5-7 organization allows the display of code values, then you can specify code values rather than display values, but only if you use one of the following operators: ■ is equal to is in ■ is not equal to is not in ■ is between To specify code values, select the Select by Code Column box and then specify the values. 5. If your repository is configured for double columns, and you are creating the filter on a display column and want to filter on display values rather than code values, then deselect the Filter by Code Column box.

6. Click the Add More Options button to add a SQL expression, Session variable,

Repository variable, or Presentation variable to the filter. Note that if you are setting the filter’s value with a SQL expression or variable, you should leave the Value field blank. For more information on variables, see Using Variables .

7. Select the Protect Filter box to protect the filters value from being overridden by a

matching prompts value or when the user navigates to another report within the analysis. When you navigate from one report to another report within an analysis, any prompt values that you specified in the first report can be transferred to the second report.

8. To convert the filter to SQL statements, select the Convert this filter to SQL box.

The Advanced SQL Filter dialog is displayed. For more information about this option, see Creating and Editing the SQL Statements for a Column Filter in an Analysis .

9. When you are finished specifying the filters criteria, click OK.

10. Save the filter in one of the following ways: ■ From the Analysis Editor, you can select Save Analysis to save the filter as an inline filter. ■ From the Filter Editor, you can select Save Filter to save the filter as a named filter. For more information, see Saving Objects as Inline or Named . Working with the EVALUATE_PREDICATE Function This section provides the following topics on working with the EVALUATE_ PREDICATE function: ■ How Can I Use the EVALUATE_PREDICATE Function with a Filter? ■ Adding the EVALUATE_PREDICATE Function to an Inline Filter For more information about this function, see EVALUATE_PREDICATE . Note: This is a one-way conversion. After you select the Convert this filter to SQL box, you can no longer view and edit the filter in the Edit Filter dialog. After you convert the filter to SQL statements, you can only view and edit the filter item as SQL statements in the Advanced SQL Filter dialog. 5-8 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Enterprise Edition How Can I Use the EVALUATE_PREDICATE Function with a Filter? You can add an EVALUATE_PREDICATE function as an inline filter clause. You cannot use this function with hierarchical columns. Use this function when you cannot create the appropriate filter clause with the Oracle BI EE filter operators. This function is intended for database functions with a return type of Boolean, and can be used only for SQL functions. Support for EVALUATE_PREDICATE does not extend across all multidimensional data sources. Also, you cannot use EVALUATE_PREDICATE with XML data sources. Example The following is an example of how you can use the EVALUATE_PREDICATE function. This example requests that Products.P4 Brand values be greater than 6 characters. After it is run, this example returns any rows where the length of the data in the P4 Brand column is greater than 6 characters for example, BizTech and HomeView. SELECT 0 s_0, A - Sample Sales.Products.P3 LOB s_1, A - Sample Sales.Products.P4 Brand s_2, A - Sample Sales.Base Facts.1- Revenue s_3 FROM A - Sample Sales Where EVALUATE_PREDICATElength16,A - Sample Sales.Products.P4 Brand. ORDER BY 1,2,3 Adding the EVALUATE_PREDICATE Function to an Inline Filter Use the following procedure to add the EVALUATE_PREDICATE function to an inline filter. Note that you cannot use this function with hierarchical columns. For more information see How Can I Use the EVALUATE_PREDICATE Function with a Filter? and EVALUATE_PREDICATE . To add the EVALUATE_PREDICATE function to an inline filter: 1. Go to the Analysis Editor’s Filters pane and click the More Options toolbar button, and select the Add EVALUATE_PREDICATE function option. The New EVALUATE_PREDICATE Function dialog is displayed. 2. Enter the functions formula. For an example of entering correct syntax, see How Can I Use the EVALUATE_ PREDICATE Function with a Filter?

3. Click OK.