Gradebook settings in Moodle and Online Courses


Grade calculations with functions

If there is several types of scales in use or not all the grades are in the course total grade calculations you must use calculation functions.

Add new grade calculation

Functions are set category total Edit > Edit calculation

Add IDs to evaluation items

Add first the item ids and Add ID numbers.

Add grade calculation

Then write the calculation function by using the IDs in the function. 

For example this function

=if(AND([[assignments]],[[seminar]],[[attendance]])>=1, [[exam]], 0)

can be read something like this "If assignments, seminar and attendance are all graded "pass" (=1), then course total is the exam grade, otherwise 0" 

Arithmetic operations, such as:

with their usual evaluation precedence rules: exponentiations are evaluated first, then multiplications and divisions are performed, filanny additions and subtractions are carried out. Different precedences can be forced using round parenthesis. For example the sum of the demo points can be counted with =[[demo1]] + [[demo2]] and =(1+2)*(3+4) is the same as =3+7

 

Mathematical functions

Note that if you are using Moodle in Finnish, the separator is semicolon (;) and comma (,) if you are using Moodle in English. If you need to have decimals use comma (,) in Finnish and dot (.) in English.

Many other mathematical functions are also supported:

Examples of using the functions

 

More detailed information