The document presents a proportional-resonant current controller designed for selective harmonic compensation in a hybrid active power filter (HAPF) used in medium-voltage industrial networks. This proposed filter combines a voltage-source converter with a passive filter to reduce voltage and current stress while ensuring effective harmonic filtering through a synchronous-reference frame controller. The effectiveness of this control system is supported by theoretical analyses and simulation results, demonstrating its capability to improve power quality by managing harmonics and reactive power efficiently.