Edit multiple rows of a table element at once

Story
We have 18 Front end pages, each pages contains one table element. Each of the table as around 20 columns and 5- 15k rows. It is the users task to go through each row and assign one of three labels to each row.
Problem
The user should be able to use the natives table element column filter so get a subset of data. The user then should be able to mark all rows at once.
Example
The example table as 500 rows. The user filters valuesy2>0 and thread = ‘c’ or ‘d’.
Now I’d like the user to be able to assign all of the 48 rows the label “done” with just one button (or similar).

How would i got about that?