Filtering data to find samples