You can create WHERE and WHERE TOTAL statements from the Selection Criteria tab in the Graph Assistant.
Note: This section applies to using the Graph Assistant in the Managed Reporting environment.
or
Press Alt+M, Tab to go to the Available Fields window, tab to the field and press Enter to add the chosen field.
The field name and EQUAL to and Select values appear in the Screening conditions pane.
After you click OK, the constant, vehicle, appears in the WHERE statement which reads BODYTYPE EQUAL to vehicle.
You can set parameter properties, for details see Setting Parameter Properties.
After you click OK, the parameter, &moped, appears in the WHERE statement which reads BODYTYPE EQUAL to &moped.
Note: The ampersand is automatically added by WebFOCUS.
After you click OK, the field BHP appears in the Where statement which reads CAR.COMP.CAR EQUAL to CAR.SPECS.BHP.
After you click OK, the value, Audi, appears in the Where statement which reads CAR.COMP.CAR EQUAL to AUDI.
Note: In order to add a blank static value for a parameter value list, do not enclose it in quotes. Press the spacebar to create the blank value and add it. This is different than adding a blank value to a Define, Compute, or Where because in those contexts an expression is being created so quotes are needed. A value list is not an expression.
In the Graph Assistant:
or
Press Alt+M, Tab to go to the Available Fields window, tab to the field and press Enter to add the chosen field.
After you click OK, the value, 1989/01/18, appears in the WHERE statement which reads START_DATE EQUAL to 19890118.
How to: |
When developing a query, you can use a locally saved, external file as selection criteria to limit query results. This enables you to quickly build a query containing a large number of WHERE statement values without having to manually enter repetitive or readily available data.
Valid options include EQUAL to, NOT EQUAL to, IN literal list, NOT IN literal list, EXCLUDES literal list, and INCLUDES literal list.
The Values dialog box opens.
A dialog box opens, as shown in the following image.
A standard file selection dialog opens.
Note: The external file must only contain text with new line delimiters.
The values contained in the file are displayed in the Multiple values entered list in the right pane of the dialog box.
You can save the query for future use and reopen the query to append new or remove existing values.
How to: Reference: |
When you create parameters for Selection Criteria (WHERE statements) you can set the properties for the parameter. For example, you can create a dynamic or static list of values to choose from at run time.
In the Graph Assistant:
The Variable Editor dialog box opens.
The Parameter Properties dialog box opens.
Note:
The Dynamic option is selected by default.
Optionally, choose the Select multiple values at run time check box to provide multiple values to the report from the auto prompt page at run time.
If you want to see the fully qualified Field name, select the Display fully qualified field name check box. This setting is for display purposes only and is not preserved.
Note: When working with a Reporting Object, you can select only fields from data sources that the Reporting Object is defined to access.
Operator |
Enabled for the Variable editor? |
---|---|
Equal to |
Yes |
Not equal to |
Yes |
Greater than |
Yes |
Less than |
Yes |
Greater than or equal to |
Yes |
Less than or equal to |
Yes |
In literal list |
No |
Not in literal list |
No |
Missing |
No |
Not missing |
No |
From-to |
No |
Not-from-to |
No |
Includes literal list |
Yes |
Excludes literal list |
Yes |
Contains characters |
Yes |
Omits characters |
Yes |
Like character mask |
Yes |
Not like character mask |
Yes |
How to: |
Use the right pane of the Selection Criteria tab to use or delete existing Where statements and to combine expressions.
How to: |
You can use parentheses to group expressions together to optimize the Where statement.
Filters enable you to quickly select predefined criteria that limit data included in a graph. Filters are selection criteria (WHERE statements) that an administrator creates for you to apply as needed, without having to create your own selection criteria.
WebFOCUS displays filters in filter groups. Each filter group can contain multiple filters. Selecting a single filter within one group creates a report with simple filtering criteria. By selecting multiple filters within a group or combining filters from different groups, you can create complex filtering expressions.
Note: Filters are only available when you are creating a graph using a Reporting Object as a template. If you do not see filters, this means they have not been developed for this Reporting Object. Filters are not available when building a Standard Report or a Custom Report.
The following image shows a few sample filters as they appear in the Selection Criteria tab of the Graph Assistant. They are listed by Group and Name.
The Screening conditions window shown in the following image allows you to drag and drop a field from the Available Fields window.
Use WHERE TOTAL to select records based on the aggregate value of a field, for example, the sum or average of a field's values.
The following image shows the Parameter Properties dialog box with the Dynamic option selected.
Note:
The following image shows the Parameter Properties dialog box with the Static option selected.
Note:
You can create temporary fields from the Graph Assistant. Temporary fields are created the same way in the Report and Graph Assistant.
For complete details, see the Creating Reports With Report Assistant manual.
WebFOCUS |