PTH and Hypokalemia: Magnesium is essential for the maintenance of intracellular potassium concentrations, and hypomagnesemia is often associated with hypokalemia, due to urinary potassium wasting, and hypocalcemia, due to lower parathyroid hormone secretion and end organ resistance to its effect [43].