Define what data or items you want to match against using the Values field.

Creating and Maintaining Conditions 12-7 ■ create a more advanced condition To edit a condition:

1.

On the Workarea: Data tab , select the condition that you want to edit. 2. Choose Edit | Edit... to display the New Condition dialog . Figure 12–3 Edit Condition dialog

3. Edit the condition details as required.

4. Click OK to save the details and close the dialog.

The updated condition is displayed on the Workarea: Data tab . Note : You can also use the Condition Properties dialog to change conditions. How to edit condition properties You edit a condition’s properties to change the way that it behaves, or change its identifier for more information, see What are identifiers? , which is a unique Discoverer identification label. You can also change the way that a condition behaves by editing the condition itself for more information, see How to edit conditions . To edit condition properties:

1. On the

Workarea: Data tab , select the condition that you want to edit. 2. Choose Edit | Properties to display the Condition Properties dialog .

3. Edit the condition properties.

4. Click OK to save the details and close the dialog.

The Workarea: Data tab is updated to reflect any changes made to the condition. How to delete conditions You delete a condition when you want to remove it permanently from the business area. For example, you might have previously filtered data relating to the year 2000, and would now like Discoverer users to access data relating to all available years. To delete a condition:

1. On the

Workarea: Data tab , select the condition that you want to delete. 2. Choose Edit | Delete to display the Confirm Delete dialog . 12-8 Oracle Fusion Middleware Administrators Guide for Oracle Business Intelligence Discoverer 3. Click Yes at the confirmation screen to remove the condition permanently. The condition is removed from the business area. Note : When Discoverer users next re-open workbooks that use a deleted condition, or refresh the worksheets using the deleted condition, previously filtered out data will be available to the Discoverer end users. Example conditions The following examples show how conditions are used in Discoverer Administrator. For more examples of conditions, see the Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Plus. Example 1: Using a condition to find data for the year 2002 To create a condition that returns only data for the year 2002, enter the following in the Formula area of the New Condition dialog: Example 2: Using a condition to find sales in the last seven days To create a condition that only returns the sales in the last seven days using the calculated item, “Transaction Age in Days”, enter the following in the Formula area of the New Condition dialog: Note that the Transaction Age calculated item has the following formula FLOOR SYSDATE - Transaction Date This type of condition is sometimes described as a “rolling window” condition because the “window” of rows it returns changes from day to day. Example 3: Using a condition to find shipments in Quarter 3 To create a condition that only returns shipments made in quarter 3 Q3 regardless of year using the calculated item, ’Ship Quarter’, enter the following in the Formula area of the New Condition dialog: Note that the Ship Quarter calculated item has the following formula: EUL_DATE_TRUNCShip Date, “Q” Item Condition Value Year = 2002 Item Condition Value Transaction Age in days 7 Item Condition Value Ship Quarter = ’Q3’