I think what you want is the exists function in entity sql. If I understand you correctly, you want to filter on categories that start with a certain letter and then further eliminate any categories that don't have any related products. The way you would do this is to take advantage of exists plus navigation properties. So you would make the where parameter on the entity data source something like:
it.CategoryName LIKE '%A%' AND exists(it.Products)
This will automatically create the appropriate join in order to navigate from the category to the related products and then use that join to filter the categories on those where the collection of related products is not empty.
- Danny
This posting is provided "AS IS" with no warranties, and confers no rights.