The code I posted allows you to select the category and other criterion.