I'm trying to create an expression that filters out records based upon a selection in another column. Im kind of lost on where to start. Just an example of what thinking:

Selection from row a filters a number of records that meet that selection.

Hope this illustrates what I'm trying to achieve.

Thanks in advance.