Here, i want to filter this values, then set them to another tables
like there is total of orange color is 8, so i want to set another table like orange total is 8,
how do I do this, i create the button below this table, click the button, it filter the table then set
best practice for setting values from the backend or frontend??