Suppose we need to find the magnetic field (B) due to a straight current carrying conductor.
In this case the magnetic field at any point due to current flowing through the conductor depends on:
1. the current (I) carried by the conductor. Magnetic field B increases with an increase in the current I.
2. the distance (r) of the point from the conductor. Magnetic field B decreases with an increase in the distance r.