Below is a link to the GL Trial Balance History SQL Stored Procedure that we use to pull the trial balance into Power Query or Power BI for dashboarding purposes. We join the results of the stored procedure with the budget table for budget versus actual reporting.

SQL Stored Procedure