Custom course total grade: use 'weighting' in formula?

Custom course total grade: use 'weighting' in formula?

by Tom Smith -
Number of replies: 0

Moodle 3.7... soon upgrading to 3.9:

Is it possible to use the 'weighting' of items in the gradebook as part of a custom formula? eg if I have item1, item2, item3, with weightings of 3, 7, 25,  is it possible to use a course total grade custom calculation that accesses those weightings, like say:

if(weight(item1)==3,87,17)

[this course total uses only item 1, but I would repeat the ifs to sum several if statements. In this example, if item1 has been given a weight of 3, then output a score of 87, else output 17)

I have a course with very complicated grading criteria and components of the course all have a common grading scale, but the value of the scale changes depending on the unit weighting. If I can set the unit weighting using the existing gradebook weighting and somehow access that weighting in the grade calculation, then I can make this work. Any help appreciated.