You've got to understand the general cellular functions of each ion.
Metabolic acidosis is a common biochemical disturbance presented by patients with renal failure. Disturbances in potassium balance are serious sequelae of renal dysfunction since only a small plasma concentration is compatible with life. The usual serum K+ concentrations have a general range of 3.4-5.4 mEq/L (although many texts/professors will give you slightly different numbers here. I remember these because they are simple). Abnormal serum concentrations lead to cardiac dysrhythmias, Gl disorders, and muscle weakness.
As kidney function continues to deteriorate, hyperkalemia ensues. Fatal dysrythimias will occur when the K+ level reaches ~7 mEq/L. Therefore, acidosis results in hyperkalemia, while alkanosis results in hypokalemia.
Of course, many other factors can influence potassium levels, such as insulin, glucagon, beta-adrenergic activity, hydrogen ion concentration, and potassium intake.
Decreasing the plasma calcium level will cause increased neruomuscular activity and hyperexcitability.