In this section: |
How to: |
Reference: |
An OLAP report is limited to values belonging to the parent categories in the dimensions hierarchy. There are several ways to further limit the data that appears in the report.
The Selections panel provides the easiest approach since you can choose both dimension values and relational operators with a few mouse clicks, while the report is fully exposed to view.
Changes made in the Selections panel are implemented immediately in the OLAP Control Panel (even if the Control Panel is closed), and changes made in the OLAP Control Panel are reflected immediately in the Selections panel.
You can define selection criteria in the Selections panel or in the OLAP Control Panel using several relational operators, which are shown in the following tables. The first column displays the operator and the second column provides a description of the operator.
Operator |
Icon |
Displays Records That... |
---|---|---|
Is Equal To |
Are equal to the criteria you specified. This is the default operator. |
|
Is Not Equal To |
Are not equal to the criteria you specified. |
|
Is Greater Than |
Are greater than, but not equal to, the criteria you specified. |
|
Is Greater Than or Equal To |
Are greater than or equal to the criteria you specified. |
|
Is Less Than |
Are less than, but not equal to, the criteria you specified. |
|
Is Less Than or Equal To |
Are less than or equal to the criteria you specified. |
|
Contains |
Contain the criteria you specified. Note: This operator is available only for alphanumeric fields. |
|
Does Not Contain |
Do not contain the criteria you specified. Note: This operator is available only for alphanumeric fields. |
Note: You can select more than one value using the same relational operator.
The following table lists and describes relational operators for selecting a range of dates.
Operator |
Icon |
Displays Records Where... |
---|---|---|
From (within range) |
The value in the indicated date field falls within the specified range. Note: To use this relational operator, you must select the Range check box in the Date Selection panel. |
|
Not From (not within range) |
The value in the indicated date field does not fall within the specified range. Note: To use this relational operator, you must select the Range check box in the Date Selection panel. |
When the Selections panel is turned on, there is one control (drop-down list) for every dimension in the OLAP hierarchy. Note that the name of the dimension field appears as defined in the Master File, even if an alternate column title has been specified.
To limit data for the dimensions that are included in the report:
To select multiple values, click the desired values while holding the Ctrl key on the keyboard.
You can toggle through a list of operators. See Selection Criteria Relational Operators.
Tip: To change or eliminate selection criteria, reopen the values list and choose another value or choose All.
The Selections panel above the report shows that the controls for Continent and Region are set to All to show all values of each dimension.
You wish to focus on the data for one continent and one region.
The output is now limited to data for the selected continent and region, as shown in the following image.
The Selection Criteria pane opens.
A secondary window opens. Select one or more values (press the Ctrl key to multiselect).
Tip: If you have access to the Selections panel, it provides the quickest way to limit data. See an illustration in How to Apply Selection Criteria From the Selections Panel.
The report shows data for continents and countries. You want to restrict the information to the Countries ARGENTINA and BRAZIL in the Continent AMERICAS.
A secondary window lists the acceptable values.
The selected values now appear in the drop-down lists in the Selection Criteria pane, as shown in the following image.
The new report displays the data by Continent, AMERICAS followed by Country, as shown in the following image.
Tip: If you have access to the Selections panel, it provides the easiest way to adjust or remove selection criteria. See How to Apply Selection Criteria From the Selections Panel.
From the OLAP Control Panel:
The Selection Criteria pane opens.
A secondary pane opens.
To change a value: Type the new value in the text pane or select one or more values from the list. (The value you type must be in the same case as the value in the data source.)
You can input only one value in the text pane. If you select more than one value from the list, only the first value appears. However, all values appear in your report.
Tip: If you have access to the Selections panel, it provides the easiest way to adjust or remove selection criteria. See How to Apply Selection Criteria From the Selections Panel.
From the OLAP Control Panel:
The Selection Criteria pane opens.
The selection category is removed from the list.
How to: |
Reference: |
You can apply selection criteria to date elements just as you apply them to other types of elements. The results are limited by the dates you select. For example, you can select to view data associated with a particular date or to exclude data from the specified date.
Note: Like other dimension elements, date fields must have been defined in the Master File. The Master File specifies the date formats available for selection criteria.
In the OLAP Control Panel, you can choose the selection criteria from a Date selection pane that contains the appropriate controls for the date format.
You can also select a range of dates in a designated year by specifying a From and To date. Two relational operators are available for selecting a range of dates:
For more information on supported date formats, see Date Format Limitations. For more information on specifying date formats, see the Describing Data With TIBCO WebFOCUS® Language manual.
Note: The Date selection pane appears only when a supported date format is provided. See Date Format Limitations.
From the OLAP Control Panel:
The Selection Criteria pane opens.
A secondary window displays controls for the date format of the dimension. For example, if the date format is YYM, only the year and month controls appear. If the format is YYMD, year, month, and day controls appear.
If your date format includes edit masking, such as Y.M.D, the date appears with forward slashes (/) in the Date selection list pane, the Selection Criteria pane, and the drop-down list at the bottom of the report. However, the date edit mask appears as specified within the body of the report.
As shown in the following images, the multi-page OLAP report includes several years of data about reported problems falling into five categories: incorrect labeling, missing components, physical damage, power failure, and remote failure.
You want to investigate problems reported on June 6, 2001. You can limit data based on a single date from the OLAP Control Panel.
Note: To show the selection of a particular date, a dimension component has been added to the procedure. This dimension places Date Problem Reported in the Time Period dimension hierarchy directly below the root.
Note: The OLAP button appears at the bottom of this report because the OLAP CONTROL setting was selected.
The Selection Criteria pane opens.
A new pane appears for Date Problem Reported, replacing the Selection Criteria pane. The pane includes a drop-down list for each selectable value (Year, Month, and Date), as shown in the following image.
The relational operator to the left of the Date pane indicates that your report will contain data only for those rows where date is equal to (=) the values you entered. This default operator is correct for this example.
Your selection criteria are listed beside the OLAP button at the bottom of the report, as shown in the following image.
The Selection Criteria pane opens.
A secondary window displays controls for the date format of a dimension. For example, if the date format is YYM, only the year and month controls appear. If the format is YYMD, year, month, and day controls appear.
Note: The Date selection pane appears only when a supported date format is provided. See Date Format Limitations.
Inclusive and Exclusive option buttons appear:
Note:
From and To drop-down lists open for all selectable options. By default, the current date appears.
As shown in the following images, the report shows problem information reported over the course of several years.
The information falls into the following categories: incorrect labeling, missing components, physical damage, power failure, and remote failure.
You want to restrict the information to problems reported between June 6, 2001 and July 6, 2001. From the OLAP Control Panel, you can limit data based on a range of dates.
The Selection Criteria pane opens.
A new pane appears for Date Problem Reported, replacing the Selection Criteria pane. The pane includes a drop-down list for each selectable value (Year, Month, and Date).
The following image shows the selections.
The date element appears at the bottom of the window.
From the OLAP Control Panel:
The Selection Criteria pane opens.
The date appears inside the Selections list pane.
From the OLAP Control Panel:
The Selection Criteria pane opens.
Note the following limitations when applying selection criteria to date elements: