Pool water quality is affected by pH levels, which is affected by alkalinity. pH levels that are too high can cause cloudy water or create scaly deposits. Low pH etches and corrodes pool equipment and surfaces. Test and adjust in order. First alkalinity, then pH, then calcium, then chlorine.