Here are the category items and their totals for an example.
grade score/
|
item score Max max
|
==== ===== === ======
|
1790 32 60 0.5333
|
1821 38 80 0.475
|
1773 76 320 0.2375
|
1778 45 45 1
|
1779 13 45 0.2889
|
1785 0 80 0
|
1822 23.2 64 0.3625 extra credit
|
==== ===== === ======
|
1746 227.2 694 2.8972 (summation from above)
|
|
Count of category items included: 7
|
The grader report shows a total of 227.2.
The user report shows a total of 260.75, which is calculated from 2.8972/7 * (694 - 64) = 260.75
This is clearly faulty logic because it sums and averages the percentages for each category as if they each have the same weight.
The path through the code is roughly as follows:
blank_hidden_total (in grade/report/lib.php) calls get_hiding_affected (in lib/grade/grade_grade.php).
get_hiding_affected calls standardise_score (which essentially computes percentages in this case).
get_hiding_affected calls aggregate_values (which sums the percentages)
get_hiding_affected calls standardise_score to rescale relative to max grade.
- has a non-specific relationship to
-
MDL-13731 problem with 1-point and/or hidden grade items
-
- Closed
-
- has been marked as being related by
-
MDL-23858 Percentage is not calculating correctly when "Show totals excluding hidden items" is selected
-
- Closed
-
-
MDL-35984 Gradebook Sum of grades shows wrong total if items are hidden
-
- Closed
-
- will be (partly) resolved by
-
MDL-39708 User Report Aggregation - Sum of grades - total excluding hidden item - aggregate only non-empty grades calcuation error
-
- Closed
-