The Event Count function must be entered as an array formula in a range that has the appropriate number of rows and columns. You can use the Configure Event Count Function dialog in DeltaV Reporter to set up a call to this function.
In order to execute this function, you must be granted read access to the Event Chronicle SQL database (EJournal) on the Event Chronicle server. Additionally, if the Event Chronicle is in a different DeltaV system than the client PC (or the client PC is not in a DeltaV system at all), you must have been granted the DeltaV security key associated with the HISTORICAL_REMOTE_ACCESS function in DeltaV on the Event Chronicle server.
Syntax
DvEventCount(chronicle_node, filters, time_mode, period_start, period_end)
Example Array Formula
=DvEventCount("localhost","Event Type,*T*;Category,USER;Area,AREA_1|AREA_2;Unit,UNIT?1A","GMT","10/11/08 10:00:00 PM","10/12/08 6:00:00 AM")
The wildcard characters in this array formula allow it to retrieve EVENT and STATUS events (that is, event types containing the letter "T") and events relating to areas with seven-character names that begin with "UNIT" and end with "1A".
Function Arguments
The list of filter patterns is separated from the column name by a comma. Filter patterns within the list are separated from each other by a vertical bar (|). A string used to define a filter pattern can use the following wildcard characters: an asterisk (*) matches zero or more characters and a question mark (?) matches exactly one character.
You can specify the period_start or period_end argument as a cell or range reference. Each cell must contain a valid date and time in standard Excel format, not exceeding millisecond precision—for example, "10/12/2008 21:06:40.676". If you specify the period_start and period_end arguments as range references, each range must refer to the same number of cells.
Alternatively, either argument could refer to a range of cells, while the other refers to a list of multiple, absolute time stamps. To specify multiple, absolute time stamps in a cell, separate each date and time with a semi-colon (;)—for example, { "08/22/2008 09:15:00"; "08/22/2008 09:32:25"}.
If multiple time periods are specified, events from the separate time periods are merged and sorted into the order appropriate for the first time period.
If period_start is a later time than period_end, events are retrieved in reverse chronological order from the (later) start time toward the (earlier) end time. If multiple time periods are specified, the first period_start time stamp is compared with the first period_end time stamp to determine chronology.