You need to add a filter on the repeating group. For example, you have a data type named Stock with a data field as the title. On repeating group, select the type of content as stock. In the data source, Do a search for Stocks, and below that add a filter i.e. where title = dropdown’s value.
Rafael, só uma sugestão. Se a sua lista de materiais for muito grande, é melhor vc fazer com Searchbox, pois imagina em um dropdown ter que carregar 1.000 itens por exemplo! Vai demorar mto e vai tornar seu app lento.