Nonlinear industrial loads can degrade power quality through harmonics and reactive power demand. A three-level active power filter combines harmonic detection, current and voltage control, and neutral-point balancing to address these issues in medium-voltage applications.