Apply Math (Interval Data)

This rule is used to perform calculations on interval data and it stores the results in the usage transaction's service quantities. A variety of options are available on this rule that include defining the calculation type, variables to use, as well as the equation to use (math functions and expressions).

Note:

Additional detail on the logic of this rule can be found in the Detailed Description of the D2-APPMATHIN Algorithm Type.

For help with the meaning of specific configuration fields, refer to the embedded help on the screen when adding or editing the rule.

Business Object

D2-ApplyMathInt

Example Scenarios

Below are some example scenarios that can be achieved based on configuration of this rule.

Scenario 1: Get the total KWH for the period

Calculation Type = Single Variable

Variable Name = V1, where the following is configured:

  • Variable Type = Channel Accumulation
  • UOM = KWH
  • Set Function = Sum

Scenario 2: Get the higher value between the total KWH or total KVARH

Calculation Type = Math Function

Math Function = Max

Variable Name = V1, where the following is configured:

  • Variable Type = Channel Accumulation
  • UOM = KWH
  • Set Function = Sum

Variable Name = V2, where the following is configured:

  • Variable Type = Channel Accumulation
  • UOM = KVARH
  • Set Function = Sum

Scenario 3: Total KWH multiplied with a factor value

Calculation Type = Mathematical Expression

Mathematical Expression = V1 * V2

Variable Name = V1, where the following is configured:

  • Variable Type = Channel Accumulation
  • UOM = KWH
  • Set Function = Sum

Variable Name = V2, where the following is configured:

  • Variable Type = Factor
  • Factor = factor code that holds the multiplier