GetCountsAndDuration(CountsAndDurationGraphType,FilterType,Nullable<Int32>,FilterTimeUnit,Nullable<Int32>,Nullable<Int32>,Nullable<Int32>,Nullable<OEEStatusFilter>) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetCountsAndDuration() method returns a DataSet containing one row for each utilization state, reason group, or reason for the current entity. It has columns for the ID, description, count or duration, color (valid only for utilization states and reasons), and an active flag that is set true for the current utilization state, reason group, or reasonOEEExec.
This overload of the method specifies the entity by its OEE status filter.
'Declaration
Public Overloads Function GetCountsAndDuration( _
ByVal graphType As CountsAndDurationGraphType, _
ByVal filterType As FilterType, _
ByVal filterDuration As Nullable(Of Integer), _
ByVal filterTimeUnit As FilterTimeUnit, _
ByVal filterStartTime As Nullable(Of Integer), _
ByVal filterEndTime As Nullable(Of Integer), _
ByVal filterCode As Nullable(Of Integer), _
ByVal oeeStatusFilter As Nullable(Of OEEStatusFilter) _
) As DataSet
public DataSet GetCountsAndDuration(
CountsAndDurationGraphType graphType,
FilterType filterType,
Nullable<int> filterDuration,
FilterTimeUnit filterTimeUnit,
Nullable<int> filterStartTime,
Nullable<int> filterEndTime,
Nullable<int> filterCode,
Nullable<OEEStatusFilter> oeeStatusFilter
)
Parameters
- graphType
Required. Holds a CountsAndDurationGraphType enumeration value that specifies the type of data that is shown in the Pareto graph of the KPI control.
- filterType
Required. Holds a FilterType enumeration value that specifies the type of data to filter.
- filterDuration
Optional. Holds an integer value that specifies the value of N if filterType is LastNHours.
- filterTimeUnit
Required. Holds a FilterTimeUnit enumeration value that specifies the time unit for a custom filter if filterType is Custom.
- filterStartTime
Optional. Holds an integer that specifies the start of the filter period relative to current period if filterType is Custom.
- filterEndTime
Optional. Holds an integer that specifies the end of the filter period relative to current period if filterType is Custom.
- filterCode
- Optional. Holds the fileter code. For the state code, drill down into the Util States graph to show the reason groups for the state. For the reason group ID, drill down into the util reason group graph to show the reasons that belong to that group.
- oeeStatusFilter
Optional. Holds an OEEStatusFilter enumeration value that specifies whether the data should be filtered by an OEE status of runtime, downtime, neither, or both.