Expressions Syntax

This chapter details the syntax used to express how measures, indicators, rules and action items are computed. There are two types of expression syntax that can be used:

  1. Computations

    Computations use metrics and functions to compute a value

    SLOC-(BRAC+HLOC)
    1-(MIN((TXADD+TXREM+TXMOD)/MAX(LC,1), 1))
  2. Queries

    Queries retrieve results from a defined scope, with an optional condition

    SUM FILES.LC FROM DESCENDANTS WHERE I.CODE_STATUS=LEGACY
    COUNT RULE FROM TREE WHERE HAS_OCCURRENCE() AND CATEGORY=SCALE_NATURE.NON_CONFORMITY

Read on to find out more about expression syntax and start building your model.

In all examples in this chapter, spaces were added between operands and operators for clarity, but they are not required.