Skip to main content

Edit Calculation - Trigger Pass/Fail

Learn how to trigger a pass or fail result based on a grade produced from another activity

Updated over 7 months ago

Purpose

The purpose of this article is to demonstrate how to trigger a pass/fail result in the gradebook

Procedures

  1. In your Moodle Course, click on Grades and navigate to Gradebook Setup

    Course tabs with Grades highlighted

    Dropdown menu with the Gradebook setup option highlighted

  2. Locate the item that will produce a Pass/Fail grade

  3. Find the Weights column, click the check box and enter a 0 (Zero) in the textbox

    Checked checkbox and text box for assigning a number value

  4. Click Save Changes at the bottom of the page

    Button labeled save changes

    Note

    Create a manual grade item to represent the pass/fail assignment

    If you do not add a manual grade item you cannot edit the calculations for any reason, not just triggering pass/fail.

  5. At the top of the Gradebook Setup page, click on Add grade item

    Button labeled Add grade item

  6. Enter a desired name in the Item Name field

  7. Click on the Grade type dropdown and choose Scale

  8. Click on the Scale dropdown and choose Pass-Fail

  9. Click Save changes at the bottom of the page

    Grade item settings: Item name, Grade type, Scale

  10. Next, go to the newly created grade item and click on Edit. Select Edit calculation from the dropdown menu

    Dropdown menu with Edit calculation highlighted

  11. Locate the field that corresponds with the Activity that you want to assign the pass/fail grade. Type a short name that will identify it. The name can be made up of letters, numbers, or a combination of the two. Use a short name because you will write it into the calculation formula

  12. Click on the Add ID numbers button at the bottom of the window

    Button labeled Add ID numbers

  13. Enter a formula in the Calculation text box

    Note

    The calculation for a Pass/Fail result is below. Use the example as a foundation for your formula

    You would then only need to change the 2 variables highlighted in the example below:

    The quiz name (This is the ID Number you chose in the previous step)

    The quiz grade value

    =if([[Q2]]>6,2,1), breakdown of equation: [[Q2]] This is what you named your manually created item. It will appear in double brackets (change as required), >6  This what minimum grade is required to pass the assignment (change as required), 2 this number represents pass, 1 this number represents fail.
  14. Click Save changes when you are finished

Button labeled Save changes

Please feel free to contact Moodle Support for help with setting this up!

Did this answer your question?