Matrix with rows filtered from a previous selection

Welcome to the community, @anamaguerrab! You could do the same as outlined in the post discussed previously:

And this one too …