Have you for the workbook/sample workbook to show this? Window count is a table calculation so it's based on what's showing in your viz.
So if you have different charts/views, the calculation works differently.
All sorted now, I removed the calculated field from the marks and re-inserted it and its working as before now. Not sure how that fixed it though.