Count Examples

The count property (rv_property_passed = count) can be used to determine a count of resource and query sets. To enable this feature the following rules must be adhered to:

  • rv_property_passed parameter must be set to count. I.e. rv_property_passed = count.
  • rv_period_passed parameter must be set to []. I.e. rv_period_passed=[].
  • rv_resource_passed can be either a set of queries or a set or resources.
    • Each resource or query must be encapsulated with [], which are then further encapsulated within a set: {}.
    • Query sets must be prefixed with %.
    • Resource sets must be prefixed with !.

The following is an example of a count of the query sets using the 3 queries Valid Demand Groups, History Bucket Without Total Orders and Unusual Total Orders. This will return a result of the number of resources within each of the 3 queries.

  • rv_property_passed = count.
  • rv_period_passed = [].
  • rv_resource_passed = %{[Valid Demand Groups],[History Bucket Without Total Orders],[Unusual Total Orders]}.

The following is an example of a count of the resources using the 2 classes Demand Groups and Globals. This will return a result of the number of resources within each of the 2 classes queries.

  • rv_property_passed = count.
  • rv_period_passed = [].
  • rv_resource_passed = !{[Demand Groups],[Globals]}.