The measurement that is affected by gravity is weight.
Weight is the force exerted by gravity on an object, while mass is a measure of the amount of matter in an object and does not change regardless of gravity. Density is the mass per unit volume, and inertia is the property of matter that resists changes in motion, both of which are also not directly affected by gravity.