Click OK. Select the named filter and click the Add More Options button. The Click OK.

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.

The EVALUATE_PREDICATE function is displayed in the Filters pane. Applying a Named Filter to an Analysis Use the following procedure to apply a named filter to an analysis. To apply a named filter to an analysis: 1. Create or open the analysis to which you want to add a named filter. 2. Within the Analysis Editor: Criteria tab, locate the Catalog pane and navigate to the appropriate folder that holds the named filter. Filters are usually saved within the Subject Area subfolder. For example, Shared Folders2. Functional ExamplesFiltersA - Sample SalesDemo. Filtering and Selecting Data for Analyses 5-9

3. Select the named filter and click the Add More Options button. The

Apply Saved Filter dialog is displayed. 4. Specify how you want to add the named filter to the analysis. You can select one or both of the following options: ■ Select the Clear all existing filters before applying box to remove all existing filters from the analysis before adding the named filter. ■ Select the Apply contents of filter instead of a reference to the filter box to copy the actual contents of the filter to the analysis. Copying the contents enables you to manipulate the filter criteria without altering the saved filter. When you deselect the Apply contents of filter instead of a reference to the filter box, a reference to the filter is added to the analysis. From the analysis, you can view but not alter the named filters contents.

5. Click OK.

The filter is displayed in the Filters Pane. Combining and Grouping Column Filters Combining and grouping column filters with AND and OR Boolean operators enables you to create complex filters without requiring you to know SQL statements. Grouping enables you to establish the precedence in which Oracle BI EE filters an analysis. To combine a column filter with other column filters: 1. Create or open a named filter or analysis that contains an inline filter. 2. If you are working with a named filter, then locate the Saved Filter pane and confirm that the filter contains two or more filter items. If you are working with an inline filter, then locate the Filters Pane and confirm that the filter contains two or more filter items. After you add the second filter item, the AND operator is displayed before the second filter item.

3. To change an AND operator to an OR operator, click the word AND. You can