Abstract.In order to to improve the power quality from energy generated by the photovoltaic systems connected to the network, this paper presents the results of two types of filters, first the active power filter with conventional control scheme and second, active power filter with a selective control scheme in order to reduce the harmonic content injected by the inverter in a photovoltaic system. The results are presented and compared by means of harmonic distortion (individual and THD). This is a novel proposal, since studies before to this, always have been interested in the compensation of harmonics arising from nonlinear loads but rarely from a voltage source, as in this case.