We have the “Filter rows” action available in the property panel (it gets suggested whenever the selection changes). It does exactly that - filters the data to the selected rows.
There is one caveat though, after you do that the “filtered” state will be reset the next time filters are applied (via filters, histogram, or even zooming on the scatter plot). In Datagrok’s UX paradigm, whenever rows are filtered there is always a “filtering control” that does the actual filtering - and it could be either removed, or used for changing the filter. Perhaps behind the curtain we can do “Selection to Column” and open up regular filters with the corresponding condition set up. It does not look like an ideal solution though, so let us think a bit more about it.