The pressure exerted by the water at every point of the dam is different and depends on the depth. We can calculate this pressure as follows:
Pressure = (specific weight of water) multiplied by (the depth of a certain point).
Specific gravity = weight / volume
or
mass / volume (which is the density) multiplied by the acceleration of gravity (on Earth g = 9.81).