Filter on IF statement DAX Measure

another option is a disconnected table showing Yes or No as the row values, a “SELECTEDVALUE” measure to return what is selected in the disconnected table, a final measure that returns a value of 1 if the row is equal to the SELECTEDVALUE return, then filter your table (as you have done in your sample) on the final measure to show only if the value is a 1.

This forum post demonstrates with a sample report: