--- alias: tutorials-howto-settargetquantityformaterial tags: - "11.3" description: "This guide outlines how to set the target quantity of a Material so that partial Weigh and Dispense operations calculate quantities against a constant reference" --- # How to: Set the Target Quantity of a Material When you apply a single formula across multiple **Steps**, the formula refers to a constant target quantity. The primary quantity of the **Material** changes after every dispense, so the system cannot use it as the reference to calculate the quantities to dispense. To keep a constant reference, define the **Target Material Quantity** and the **Target Material Units** of the target **Material**. ## Sequence of Steps 1. In the left side menu, select **Business Data**. 2. From the Business Data panel, select **Material**. 3. In the top ribbon, select **New**. 4. Complete the **Material** data. For more information, see [[user-guide-create-material]]. 5. Enter the **Target Material Quantity**. The value must be greater than zero. For example, `25`. 6. Select the **Target Material Units**. For example, `Kg`. The units are mandatory when you define the quantity. 7. Select **Create**. !!! warning When you use a single BOM across multiple Steps, set the primary quantity of the Material to zero before the first operation. When you define the target quantity, every Weigh and Dispense operation adds the dispensed quantity to the primary quantity of the Material. The system adds the quantity directly in Consume mode and indirectly, through Sub-Materials, in Attach mode. When you do not define the target quantity, the operation sets the primary quantity to the dispensed quantity. !!! note While the Material has a Target Material Quantity and Target Material Units, the system restricts several Material operations. After all the partial Weigh and Dispense operations are complete, remove both properties. ## Expected Result The target **Material** has a constant reference quantity. The system calculates the quantity to dispense for each ingredient against that quantity in every **Step**. For more information, see [[tutorials-weigh-and-dispense-calculate-quantities]].