# Grading issue with Problem Bank (Beta) – total score calculated based on library size instead of display count

**URL:** <https://discuss.openedx.org/t/grading-issue-with-problem-bank-beta-total-score-calculated-based-on-library-size-instead-of-display-count/18523>\
**Category:** Site Operators\
**Tags:** tutor\
**Created:** [March 3, 2026, 2:01pm UTC](https://discuss.openedx.org/t/grading-issue-with-problem-bank-beta-total-score-calculated-based-on-library-size-instead-of-display-count/18523 "2026-03-03T14:01:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomaszCh](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@TomaszCh](https://discuss.openedx.org/u/TomaszCh)\
**Post date:** [March 3, 2026, 2:01pm UTC](https://discuss.openedx.org/t/grading-issue-with-problem-bank-beta-total-score-calculated-based-on-library-size-instead-of-display-count/18523/1 "2026-03-03T14:01:02Z")

</div>

I have encountered a grading issue with the **Problem Bank (Beta)** component that I am unable to resolve.

I created a Content Library and connected it to a Problem Bank in my course. I configured the bank to **randomly select 3 problems**. The randomization works perfectly; however, there is a major issue with the grade calculation.

I have set the subsection containing these questions as a ‘Final Exam’ and assigned it a weight of 100 in the grading settings. The progress and final grade are being calculated based on the **total number of problems available in the bank** , rather than the number of questions actually shown to the student.

In my case, I have 8 questions in the library but only display 3. Even if a student answers all 3 correctly, the final score is recorded as **37.5% (3/8)** instead of **100% (3/3)**.

When using the **‘Legacy’ Library Content** block with the same settings, the grade is correctly calculated based on the number of selected questions (3).

Is there any way to configure the **‘Beta’ Problem Bank** so that it returns a percentage based only on the number of questions randomly selected for the student?

---

<div class="post-metadata">

**Author:** ![sarina](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sarina/32/2308_2.png) [@sarina](https://discuss.openedx.org/u/sarina)\
**Post date:** [March 3, 2026, 2:16pm UTC](https://discuss.openedx.org/t/grading-issue-with-problem-bank-beta-total-score-calculated-based-on-library-size-instead-of-display-count/18523/2 "2026-03-03T14:16:23Z")

</div>

Hi @TomaszCh - do you have any idea what version of the Open edX software your site is running?

---

<div class="post-metadata">

**Author:** ![braden](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/braden/32/46_2.png) [@braden](https://discuss.openedx.org/u/braden)\
**Post date:** [March 3, 2026, 5:15pm UTC](https://discuss.openedx.org/t/grading-issue-with-problem-bank-beta-total-score-calculated-based-on-library-size-instead-of-display-count/18523/3 "2026-03-03T17:15:49Z")

</div>

Hi, thanks for reporting this bug. We have a fix in progress here and you can follow that issue: [fix: apply library\_content transformer to all ItemBankMixin xblocks by MaferMazu · Pull Request #37830 · openedx/openedx-platform · GitHub](https://github.com/openedx/openedx-platform/pull/37830)

CC @mafermazu
