How to get repeating group to only display certain things

Hello , i have a bunch of categories and products , the products are displayed in a repeating group with text above the repeating group displaying the category how do i get the repeating group to only display products from a certain category?