Using the Company/Branch filter in the heading and on the details gave different result and removing Branch filtering in the header only returned accounts having a movement for the selected period. So filter on a specific branch on the details only returned the rows that existed in the result.
This is now fixed and it will return all accounts for all branches upto the selected period when the Company/branch filter in the heading is empty.
And filtering in the details will also show all accounts.