The measurement that is affected by gravity is weight.
Weight is defined as the force exerted by gravity on an object and is calculated as the product of mass and the acceleration due to gravity (W = m × g). While mass is a measure of the amount of matter in an object and is constant regardless of location, weight can change depending on the strength of the gravitational field in which the object is located.
Density, on the other hand, is a measure of mass per unit volume and does not directly change with gravity, although the measurement of volume can be influenced by gravitational effects in certain contexts. Inertia is a property of matter that pertains to its resistance to changes in motion and is directly related to mass, not gravity.
So, to summarize, weight is the measurement affected by gravity.