Your data presentation suggests that they were obtained with stats values() which means that you'd have two separate multivalued fields. There is no relation between values in those fields. so you can't (easily) remove corresponding values from both fields. You should filter your values before summarizing them.
Hi @CuriousSplunky ,
supponing that you created the table using a stats command, you have only to add a search command after the stats:
<your_search>
| stats values(grade) AS Grade BY User Subject
| search Subject IN (Physics, Social)
Ciao.
Giuseppe
Hi @CuriousSplunky .. your current search query and the sample data would be better to have.. thanks.
What do your raw events look like?