For this you can refer:
For the measure you could try something like this:
Measure = IF ( CALCULATE ( COUNTROWS ( VALUES ( Products[Color] ) ), KEEPFILTERS ( Products[Color] IN { "Blue", "Black" } ) ) >= 2, TRUE (), FALSE () )