This application discloses a filter and power device, belonging to the field of
power electronics technology. The filter includes: a terminal block with a first groove on one side and a second and third groove connected to each other on the side opposite to the first groove; a first magnetic ring placed in the first groove; a second magnetic ring placed in the second groove; and a filter
assembly, at least partially placed in the third groove, with the filter
assembly located between the first and second magnetic rings. Thus, this application achieves a high degree of integration of the first magnetic ring, the second magnetic ring, and the filter
assembly through the terminal block, simplifying the filter structure, reducing the space occupied by the filter, making the filter
layout more compact, and the arrangement between the various structures more reasonable. It fully utilizes the internal space of the terminal block, achieving a tight connection between the various structures within a limited space, effectively reducing the overall size of the filter and the overall volume occupied by the filter.