![Avaya Call Management System Скачать руководство пользователя страница 158](http://html1.mh-extra.com/html/avaya/call-management-system/call-management-system_custom-reports_3028118158.webp)
Advanced report design
158 Avaya CMS Custom Reports
Other available formats for “Where” clauses
For historical reports only, you can specify a list of hardcoded values using the following
format:
Expression in (list of values)
As with a basic “where” clause, the
Expression
can be a database item or calculation.
The values you list in the parentheses must be separated by commas. Also, you must use
apostrophes for those values that normally require them. For example, the following
“where” clause specifies three dates for the report:
Select rows where: ROW_DATE in ('07/01/93', '07/08/93','07/15/93')
The following “where” clause specifies three splits for the report:
Select rows where: SPLIT in (1,7,22)
For historical reports only, you can also exclude rows using a list of values by adding
not
to the clause. Using
not
can be extremely useful if you want to exclude, for example,
lunch time intrahour intervals from your intrahour historical reports, as shown in the
following example:
Select rows where: STARTTIME not in (1130, 1200, 1230).
Repeating aggregate function values
Normally, a field (or bar) that contains an aggregate function (
sum, max, min,
or
avg
)
displays just one value. This is true no matter what your “Select rows where” criteria are.
Therefore, you would normally select “discrete” as the field/bar type in the row search ID
assigned to aggregate functions.
However, you may at times want CMS to display multiple values for an aggregate function.
In historical reports only, CMS can display multiple values for an aggregate function. For
CMS to do this, the aggregate function must share a row search ID with one or more fields
that do not have an aggregate function.
For example, you may want a report (see figure below) that shows the maximum (max)
ACD calls in an interval for each of a variety of splits.
Repeated aggregate function report
Date: 07/01/93
Max ACD Calls-
Split
Morning
1
652
2
491
3
297