A Count node is a Calculation node that you can use in a policy model to calculate the total number of rows in a collection.
The input for a Count node must be a collectionA set of results from a Query node or a set of readings associated with input nodes such as Measurement Location, Health Indicator, or OPC Tag.. The output for a Count node, Value, contains the result of the calculation.
The Properties window for a Count node contains the items that are described in the following table.
Item |
Description |
Notes |
---|---|---|
Collection section |
Specifies the collection for which you want to calculate the total number of rows. |
You can select |
The following example illustrates how you can use a Count node in the policy model to determine if any Measurement Location readings were recorded within the last week. Consider the following nodes and connections.
In this example, a Collection Filter node is used to filter the readings associated with the Measurement Location node to only the readings that occurred within the last week. The Count node is then used to calculate the number of readings that occurred. The following image shows what the Properties window for the Count node looks like.
Copyright © 2018 General Electric Company. All rights reserved.