Calculated measures are defined by an equation that consists of previously defined variables, such as process, output, and calculated measures, functions, and constants.

Often, calculated measures are established for convenience. For example, suppose you have the process measures of gross container weight and tare weight. You can create an equation to subtract the tare weight from the gross container weight to calculate the net product weight.

Add a calculated measure to a process

Calculated measures are associated with processes. To add a calculated measure to a process, open the process template.

  1. In the Measures section of the template, select Add Calculated Measure.
  2. Enter a name and an optional description for the new measure.
  3. Enter a valid equation. Equation variables must be previously set up process, output, or other calculated measures. Variable names must use the following format, with an underscore at the beginning and end of the name, _VariableName1_.
    Note

    Select the Show Variables link to display the available measures.

  4. Select OK and save your changes to the process template.

For more information on process and output measures, go to Continuous measures.

Valid equations

Real-Time SPC supports basic mathematical functions. The equation syntax requires parentheses for functions, exponents, multiplication, and following the order of operations (PEMDAS).

When you start typing the equation, Real-Time SPC autofills the supported functions. Use the following syntax examples to create your own equations.
Calculate net weight
Subtract tare weight from gross weight.
  • subtract(_Gross Container Weight_,_Tare Weight_)
  • _Gross Container Weight_ - _Tare Weight_
  • _Gross Container Weight_ - 1.5
Calculate area
Multiply length and width.
  • multiply(_Length_,_Width_)
  • _Length_ * _Width_
Calculate the mean of several measures
mean(_Measure1_,_Measure2_,_Measure3_,_Measure4_)
Calculate the standard deviation of several measures
std(_Measure1_,_Measure2_,_Measure3_,_Measure4_)
Note

Only valid measures associated with the same process as the calculated measure are available for use as equation variables.

Deleted equation variables

If the equation for a calculated measure contains a deleted measure, the equation is no longer valid. The equation remains; however, the deleted measure is represented by a system id value. For example the following valid equation, _Gross Container Weight_ - _Tare Weight_, becomes invalid when _Tare Weight_ is deleted from the process.

The invalid equation contains a system id value instead of a valid measure name (_Gross Container Weight_ - _12_).

Real-Time SPC retains all previous calculations. Subsequent data collections will use a null value until the equation is valid again.

Sampling plan details

Calculated measures are available only for Data Collection Form data collections. Calculations apply to each row of data.
Note

All measures used in a calculated measure must be in the same sampling plan as the calculated measure. For more information, go to Overview of data collection methods for sampling plans.

The subgroup size for the calculated measure does not have to match the subgroup sizes for the variables in the defining equation; however, calculated measures are only calculated based on the smallest subgroup size.

In this example, the calculated measure, Net Product Weight, has a subgroup size of n=3. Because the subgroup size for Tare Weight is n=1, the calculated measure only records one observation for the data collection. The Xbar-R chart for the calculated measure cannot display the data because the Xbar-R chart requires at least 2 observations to calculate the range of the data.

Edit observations

When you edit an observation for a measure that is used in the calculated measure equation, the calculated measure also updates, as well as the following items for the calculated measure.
  • Plotted points of the control chart
  • Tests for special causes
  • Summary and performance statistics
  • If the original calculated data point was flagged and had assignable causes and/or corrective actions, these will remain if the point still exceeds the limits. If the point no longer exceeds the limits, the flag is removed; however, the assignable causes and correctives remain.
Note

You cannot edit calculated measures directly. You can only edit them by editing one of the measures within the equation.

For more information, go to Edit observations and descriptors.