PROBLEM: How to calculate the number of batches on a filtered table?
=2.SUBTOTAL(1.103;SOURCE[BATCH])
The formula =SUBTOTAL(103;SOURCE[BATCH]) calculates the number of non-empty cells in the column BATCH of the table SOURCE
SUBTOTAL(function_num,ref1,[ref2],...)
The result without filtering will be "5".