I understand you want to generate and filter the trial balance report by class. Currently, the trial balance report is unable to filter class. However, you can run the General Ledger or Transaction Detail by Account report to filter transactions by class.
Hover to the Reports, then enter General Ledger in the search bar.
Click Switch to classic view, then tap Customize.
Click Change columns and tick Class.
Click Filter, then tap the Class dropdown and select a specific customer if necessary.
Once done, hit Run report.
By exporting and consolidating both Trial Balance and General Ledger reports manually add a class column and enter more necessary details.