You can use a formula grade item to define a formula that calculates a grade item’s value based on other grade items. When you create a formula, you specify which grade items you want included in the formula and the relationships between them. An example of a simple formula is one that calculates the sum of a number of grade items. A more complicated formula is one that drops the minimum or maximum value from a set of grade items.
The following limitations apply to formula grade items:
The formula area is where the formula text displays. The equals sign (=) at the start of the formula cannot be deleted. A cursor shows your position in the formula.
Use the cursor placement icons to move the cursor forwards and backwards in the formula. You can also move the cursor by clicking on the new location with your mouse. There are four options:
To view what grade items you can insert as a parameter in your formula, use the Grade Item drop-down list. You can insert Numeric, Pass/Fail, Selectbox, and Formula type grade items. You cannot reference the formula grade item you are defining or a final grade.
To view the values associated with the grade item you want to use in the formula, use the Grade Item Value drop-down list. There are three options:
When using the weighted system, category and grade item weights are ignored in formula calculations.
Dropped grade items and bonus grade items are calculated the same as other grade items.
The Function drop-down list contains a list of functions that you can use in your calculation formula:
You can embed functions within functions.
The Start, Next Term, and End options are used to define elements of a function:
Operators are usually used in conjunction with at least one grade item.
Error | Description | Examples |
---|---|---|
Unexpected [token_type] For example, Unexpected operator | The formula contains a function component in an unexpected location | = 5=/1 |
Unbalanced parentheses | The formula contains an opening or closing bracket without a corresponding bracket | 5+1) |
Missing end of function | The formula contains an unclosed function | = SUM{[Item1.Points], [Item2.Points] |
Unexpected function end | The formula contains a closing bracket for a function that does not relate to a function | = [Item1.Points]/2} |
Invalid number of operator parameters | The formula contains an invalid number of operator parameters | = [Item1.Points] + |
Invalid number of function parameters | The formula contains an invalid number of function parameters | = SUM{} |
Numeric value expected | A Boolean statement or operator was entered in place of a numeric value | = IF{5<2,1 OR 1,4} |
Boolean value expected | A Boolean statement was not entered for a condition | IF {MIN{4,5},100,0} |
Invalid terminal | The formula contains an incorrectly used terminal | = [Item1.Points] + 3.2.5 |