In Ampere's law ∮B.dl=μo​i , i is the total current crossing the area bounded by the closed curve. The magnetic field B on the left-hand side is the resultant field due to all existing currents.