Me$_{3+\delta}$Ge, being a Weyl semimetal, shows a large anomalous Hall effect (AHE), which decreases slowly with an increase in $\delta$ from 0.1 to 0.4. However, AHE in this compound remains significantly large in the whole range of $\delta$ because of the robust nature of the topology of bands. To explore the possibility of tuning the anomalous transport effects in Weyl semimetals, we have studied the single-crystal hexagonal-(Mn$_{0.78}$Fe$_{0.22}$)$_3$Ge compound. Magnetization of this compound shows two magnetic transitions at 242 K ($T_{\text{N1}}$) and 120 K ($T_{\text{N2}}$). We observed that the AHE persists between $T_{\text{N2}}$ - $T_{\text{N1}}$ and vanishes below $T_{\text{N2}}$. Further, we performed single-crystal neutron diffraction experiments (using spherical neutron polarimetry and unpolarized neutron diffraction) to determine the magnetic structures of (Mn$_{0.78}$Fe$_{0.22}$)$_3$Ge at different temperatures. Our neutron diffraction results show that the sample possesses a collinear antiferromagnetic structure below $T_{\text{N2}}$. However, the magnetic structure of the sample remains noncollinear antiferromagnetic, the same as Mn$_3$Ge, between $T_{\text{N1}}$ to $T_{\text{N2}}$. The presence of AHE, and noncollinear magnetic structure in (Mn$_{0.78}$Fe$_{0.22}$)$_3$Ge, between $T_{\text{N1}}$ and $T_{\text{N2}}$, suggest the existence of Weyl points in this temperature regime. Below $T_{\text{N2}}$, AHE is absent, and the magnetic structure also changes to a collinear antiferromagnetic structure. These observations signify a strong link between the magnetic structure of the sample and AHE.