Many thanks for taking a time and answer my question. I did not really understand what you did, but I have found a solution using Sets and the logical function CASE
CASE [Set Category] WHEN [Group] = 'Shirt'
AND [Category] = 'Red' THEN [Subcategory] END
I put it into the filter and selected Null and Not null values, and It worked.