As you likely know from using Table Calculations in Tableau, they only compute against the marks displayed in a worksheet. Check out this webinar in you need a refresher.
That means when a filter is applied to the worksheet, a table calculation will update to reflect only the data present in the worksheet.