you can create a table for selection
Table 2 = DISTINCT('Table'[Class])
Do not create relationship between two tables.
Then create a measure
MEASURE =
IF (
MAX ( 'Table'[Year] ) = MAX ( 'year'[Year] )
&& MAX ( 'Table'[Month] ) < MAX ( 'month'[Month] )
&& MAX ( 'Table'[Type] ) <> "C",
1
)
add this measure to one visual filter and set to 1

You will see the selected type.
add this measure to another table visual filter and set to 0
then you can see the unselected type