Effect of low pass filter on the time domain Consider an ideal (rectangular profile in frequency domain) low-pass filter (LPF) which simply sets to zero all the frequencies beyond a certain cut-off frequency. Let $x$ be a discrete-time signal of duration $N$ in time domain, i.e., $x=[x_1,x_2,\ldots,x_N]$. Apply $x$ as input to the LPF and let $y=[y_1,y_2,\ldots,y_N]$ be the corresponding output signal in time domain. I have checked the spectrum of input and output signals and I can confirm the filter works well and also the input and output signals make sense. 

From simulations, I can see that the following condition holds:
$$ 
\sum_{t=1}^{N} x_t = \sum_{t=1}^{N} y_t.
$$
My question is why this condition should hold. Is it there a general rule? I can think of an example where it holds. If I filter every frequency except the DC component, then the output signal in time is the mean value of the input signal and indeed the condition above is verified since 
$$
\frac{\sum_{t=1}^{N}x_t}{N}=\bar{x},
$$ 
where $\bar{x}$ denotes the mean value of signal $x$. If $y_t=\bar{x}$, $\forall t$, then 
$$
\sum_{t=1}^{N}y_t = \sum_{t=1}^{N}\bar{x} = N \bar{x} = \sum_{t=1}^{N}x_t.
$$

For example, I know that by Parseval's Theorem the energy of the output signal will be different from the energy of the input signal (and this occurs) but I am not sure why the condition above should hold.
Thank you very much in advance.
If you sample a pure sinewave for an integer number of periods, the samples will sum to zero (it will have equal "ups" and "downs").  If you zero an FFT bin, that's the same as subtracting a sinewave of the same magnitude and phase as was in that bin, or identically, adding a pure sinewave of the same magnitude but opposite phase.  So zeroing bins is the same as adding sinewaves that are exactly periodic in FFT aperture (as those are the basis vectors of a DFT).  So zeroing any set of bins (other than the DC or 0 Hz bin) adds samples than sum to zero, thus having no effect on the total sum of the time domain samples after the modification.