Using the selections to filter the dataset