I made an example - https://docs.google.com/spreadsheets/d/1xRl1vBttWToJeDjJB4Okd6FKidLyvoPF2uXJmLCOzPI/edit?usp=sharing
Formula Used:
=Arrayformula(INDEX(FILTER(POIOS!D2:D;POIOS!B2:B<=B2;POIOS!C2:C=A2);COUNTA(FILTER(POIOS!D2:D;POIOS!B2:B<=B2;POIOS!C2:C=A2))))
In the table on the sheet, the results are filtered by values from the next two sheets. Filtered by week number and name. When I add the Arrayformula, I expect that when adding data to the first sheet, the calculations will automatically appear in a new row. But this does not happen. What am I doing wrong?
I looked at examples of using the Arrayformula, but they are only for simple tables on one sheet.

COUNTAin the original formula, should there be a count in the output instead of enumerating the items?