Let me help share information about how your report pulls up its data in QuickBooks Online.
To start with, transactions on your Trial Balance report will show up depending on the accounting method you've chosen. Please be informed that in any method, cash or accrual, all transactions accumulating on that period will display even if you've customized it with your desired date.
This is the reason why it'll still show your transaction from the prior period even if you selected the current year. Learn more about your report with this article: Run basic financial reports.