Martin
This solved my problem. Thank you.

I need to do a Median calculation and for that I filter and then compute the median for the visible rows only.