Back

How to Create a Trial Balance Report for Business Central in Popdock

Published: Dec 02, 2026
Post Author Written by Joseph Barb

Creating a Trial Balance Report

A Trial Balance report lists every G/L account’s beginning balance, its activity (debits and credits for the date range you enter), and its resulting ending balance. It gives you a single view to confirm total debits and credits are in balance before closing a period or preparing financial statements. Popdock does not include a Trial Balance as a default list in the Business Central connector, but you can build one yourself using a combination of Summary Lists, Join Lists, and calculated fields. The steps below outline how to set this up.

Prerequisites:

  • Popdock account with at minimum a Business subscription to have access to Query Builder.
  • A Business Central connector.
  • A G/L Entries list. This is best if created using Query Builder. For help building it, see How to Create a Query Builder List

How to add the G/L Entry Table using Query Builder

To add the G/L Entry table through Query Builder, follow the steps in How to Create a Query Builder List, but give your Query Builder list a name related to G/L Entries (Step 7), and when you search for the table in the dropdown (Step 8), search for “G/L Entry”. Once you have added this table you can add the fields you want and any restrictions to limit the list to specific data. You can also join another table to the G/L Entry table if you need data from it for your Query Builder list.

Once you have built your queries in Sandbox, promote them to your Production environment before you continue to the next steps if you intend to use this in Production. For instructions, see Promoting an Extension from a Business Central Sandbox to Production.

Adding Start Date and End Date User Variables

When you add date user variables you have to set a specific default date, but those dates will be overridden when the lists built on top of this one pass their own dates down. For Start Date, use a date on or before your first transactions in Business Central.

1. Edit the connector with your G/L Entries list.

2. In the left navigation pane, click Lists.

3. Navigate to the G/L Entries list and click Edit for that list.

4. In the list settings menu, click Variables.

5. Under User Variables, click Add a user variable.

6. Add a variable named Start Date. Set the Field type to Date, leave the Default value type set to Constant, and set a Default value early enough to include your first G/L entry.  You can leave the Required box unchecked.

7. Click Add.

8. Click Add Variable again to add the second variable, End Date. Set the Field type to Date and configure the Default value (this can be any date; it will be overridden by the lists built on top of this one) and Required box the same way as Start Date.

9. Click Add.

user variables

You now have both variables available on the list. The next step is to use them in your restrictions, filtering Posting Date to be greater than or equal to Start Date and less than or equal to End Date. See the next section for those steps.

Setting Up the Restrictions

With Start Date and End Date variables added, you’ll set up two restrictions on the Posting Date field so the list only returns records within the period the user selects.

1. In the left navigation pane, click Restrictions.

2. Click Add a Restriction.

3. In the Add Restriction window, set the field to Posting Date and the Restriction Type to Greater than or equal to.

4. For the value, click the icon to show the options, choose Select Variable, and then select Start Date.

5. Leave Applies To set to Everyone.

6. Click Add. This is your first restriction.

7. Click Add another restriction to set up the second one.

8. Set the field to Posting Date again, but this time set the Restriction Type to Less than or equal to.

9. For the value, click the icon, choose Select Variable, and then select End Date.

10. Leave Applies To set to Everyone and then click Add.

Screenshot 2026 11 03 131149

You will now see both restrictions listed against Posting Date: one filtering on Start Date, the other on End Date. Together, they restrict the G/L Entries list to only the records within the period the user enters when the list runs.

Creating the Beginning Balance Summary List

To calculate each account’s Beginning Balance, you’ll summarize the G/L Entries list by G/L Account No., then use a date filter to pull in everything posted before your Trial Balance period starts.

1. From the main menu, select Connectors.

2. Select the Edit icon next to your Business Central connector.

3. Select Lists on the left navigation pane, then select the Custom lists tab.

4. Click the Add custom list button, then select Summarize a list from the dropdown (or Summary list, if this is the first custom list on the connector).

5. Enter a Name for your list, something like “Beginning Balances for Trial Balance”.

6. Select G/L Entries as the Base list, then select a Group to add it to.

7. Select Fields from the left navigation pane.

8. Select Sum from the Summary method dropdown.

9. In the Summary fields section, check the box next to Amount ($), Debit Amount ($), and Credit Amount ($).

10. From the Group by field dropdown, select G/L Account No.

11. Uncheck the Add the base list as a detail box. You won’t need it because this is not the final list in the Trial Balance.

12. Select Add list at the bottom.

Adding the Variables to Pass to the Base List

1. With the Summary List open, select Variables from the left navigation pane.

2. Click the Add variable button.

3. Name the variable Start Date, matching the base list variable name exactly.

4. Set the Field type to Date.

5. Set the Default value to the earliest G/L entry Posting Date, and then click Add.

6. Repeat steps 2-4 to create an End Date variable.

7. Set the Default value to any date because it will be overridden, and then click Add.

Adding a Calculated Variable

1. With the Summary List open, select Variables from the left navigation pane.

2. Click the Calculated variables tab.

3. Click the Add variable button.

4. Enter a Name of “Adjusted End Date”.

5. Set the Field type to Date.

6. Enter the formula, and then click Add:  

AddDays({{End Date}}, -1)


Set Your Base Variables

1. With the Summary List open, select Variables from the left navigation pane.

2. Click the Base variables tab.

3. You should see the two variables from the base list: Start Date and End Date.

4. For End Date, click the icon in the Value field and choose Variable from the dropdown.

5. Select Adjusted End Date from the dropdown to assign End Date = Adjusted End Date.

6. Repeat steps 4-5 for Start Date, selecting the Start Date variable.


Adding the Beginning Balance Calculated Field

1. With the Summary List open, select Fields from the left navigation pane.

2. Click the Calculated fields tab.

3. Click the Add calculated field button.

4. Enter a Name of “Beginning Balance”.

5. Set the Field type to Currency.

6. Enter the following formula and then click Add:  

{Sum of Amount ($)

The name inside the curly braces must match the field name exactly.

Creating the Activity Summary List

To calculate each account’s Debit Activity and Credit Activity for the period, you’ll summarize the G/L Entries list by G/L Account No., then use a date filter to pull in everything posted between your Start Date and End Date.

1. From the main menu, select Connectors.

2. Select the Edit icon next to your Business Central connector.

3. Select Lists on the left navigation pane, then select the Custom lists tab.

4. Click the Add custom list button, then select Summarize a list from the dropdown (or Summary list, if this is the first custom list on the connector).

5. Enter a Name for your list, something like “Activity for Trial Balance”.

6. Select G/L Entries as the Base list, then select a Group to add it to.

7. Select Fields from the left navigation pane.

8. Select Sum from the Summary method dropdown.

9. In the Summary fields section, check the box next to Amount ($), Debit Amount ($), and Credit Amount ($).

10. From the Group by field dropdown, select G/L Account No.

11. Uncheck the Add the base list as a detail box. You won’t need it because this is not the final list in the Trial Balance.

12. Select Add list at the bottom.


Adding the Variables to Pass to the Base List

1. With the Summary List open, select Variables from the left navigation pane.

2. Click the Add variable button.

3. Name the variable Start Date, matching the base list variable name exactly.

4. Set the Field type to Date.

5. Set the Default value to the earliest G/L entry Posting Date and then click Add.

6. Repeat steps 2-4 to create an End Date variable.

7. Set the Default value to any date, because it will be overridden, and then click Add.


Set Your Base Variables

1. With the Summary List open, select Variables from the left navigation pane.

2. Click the Base variables tab.

3. Click the icon in the Value field for Start Date, choose Variable from the dropdown, and then select Start Date.

4. Repeat step 3 for End Date and select End Date.

Unlike the Beginning Balance list, both dates pass straight through, so this list only sums entries posted between the Start Date and End Date.

Joining the G/L Entries List to the Beginning Balances List

With your Beginning Balances Summary List ready, you can now join it to the G/L Entries list so every transaction record also carries its account’s Beginning Balance.

1. From the main menu, select Connectors.

2. Click the Edit icon next to your Business Central connector.

3. Select Lists on the left navigation pane, then select the Custom lists tab.

4. Click the +Add custom list button, then select Join list from the dropdown.

5. Enter a Name for your join list, something like “G/L Trial Balance”, and select a Group to add it to. Then select Add list.

6. Select Joins from the navigation pane.

7. Click the Add a list button.

8. In the Add list window, select the Connector, Group, and List, choosing G/L Entries as the base list for the join. Select the fields you want included (include G/L Account No., which the final list summarizes on), then select Add.

9. To join the second list, click the Add list button.

10. Select the Connector, Group, and List, this time choosing your Beginning Balances Summary List. Use the From field and To field to join on G/L Account No. from each list. Then select Add.

11. Select the arrow between the two lists to open the Join settings pane. Leave the Join type set to Left outer.

This matters here specifically: a Left outer join keeps every record from the G/L Entries list and pulls in the Beginning Balance for that G/L Account No. wherever a match exists, rather than dropping transactions that don’t line up with the summary.

12. Select the Beginning Balances box. In the Join settings pane, select Fields and add Beginning Balance.

13. From the left Settings menu, select Default fields, then select Add default fields to choose which fields display by default. At minimum, include your G/L Entries fields plus Beginning Balance.

14. Select Variables from the left navigation pane.

15. Under User Variables, add a Start Date and End Date variable the same way you did on the G/L Entries list. Set both to a default range for now. These will be overridden once the final Trial Balance list passes its own Start Date and End Date through.

16. Add a Calculated variable named Beginning Balance Date, set to the formula:   

{{Start Date}}

The name inside the curly braces must match the variable name exactly.

17. Select Joins from the left navigation pane.

18. Click the G/L Entries box, select the Variables tab in the right-hand sidebar, click the asterisk next to Start Date to change it to Variable, then select Start Date.  Do the same for End Date, selecting End Date.

19. Click the Beginning Balances box, select the Variables tab, click the asterisk next to End Date to change it to Variable, then select Beginning Balance Date.

This passes Beginning Balance Date to the Beginning Balances Summary List’s End Date, so the Beginning Balance is always calculated through the day before this Join list’s Start Date.

The join list is now ready to use. Each G/L Entries record will carry its account’s Beginning Balance alongside it, giving you the foundation to build out Net Change and Ending Balance next.

Building the Trial Balance Summary List

With the join list in place, the last step is to summarize it down to one row per G/L Account No., giving you the actual Trial Balance.

1. From the main menu, select Connectors.

2. Select the Edit icon next to your Business Central connector.

3. Select Lists on the left navigation pane, then select the Custom lists tab.

4. Click the Add custom list button, and then select Summarize a list from the dropdown.

5. Enter a Name for your list, such as “Trial Balance Summary with Ending Balance.”

6. Select G/L Trial Balance as the Base list, then select a Group to add it to.

7. Select Fields from the left navigation pane.

8. Select Sum from the Summary method dropdown.

9. In the Summary fields section, check the box next to Amount ($), Debit Amount ($), and Credit Amount ($).

10. Next, select First from the Summary method dropdown.

11. In the Summary fields section, check the box next to Beginning Balance and G/L Account Name.  These fields don’t need to be summed. Every G/L Entries record for a given account already carries the same Beginning Balance and account name, so First carries one value through per group instead of adding duplicates together.

12. From the Group by field dropdown, select G/L Account No.

13. Optionally, check the Add the base list as a detail box to show the individual transactions under each summarized G/L Account No.

14. Select Add list at the bottom.

Renaming Amount ($) to Net Change

1. Select Fields from the left navigation pane.

2. Select the Summary fields tab.

3. Rename Amount ($) to Net Change by clicking the field name and editing it. This is the field that represents each account’s activity for the period, so the name should reflect that rather than carrying over the raw field name from G/L Entries.

Adding the Ending Balance Calculated Field

1. Select the Calculated fields tab.

2. Click the Add a calculated field button.

3. Enter a Name of “Ending Balance”.

4. Set the Field type to Currency.

5. Enter the following formula, and then click Add.

If(IsBlank(AsString({Beginning Balance})), 0, {Beginning Balance}) + {Net Change}

The names inside the curly braces must match the field names exactly.

Your Trial Balance Summary now shows a Beginning Balance, Net Change, and Ending Balance for every G/L Account No., pulled and calculated straight from your G/L Entries data.

Passing the Date Filter Down from the Trial Balance Summary List

The Trial Balance Summary with Ending Balance is the list your users will actually run, so it needs its own Start Date and End Date variables, and these need to cascade all the way back down through the Join list to the G/L Entries restrictions and the Beginning Balances Summary.

1. Select Variables from the left navigation pane.

2. Under User Variables, click Add a user variable.

3. Add a variable named Start Date. Set the Field type to Date, and configure the Default value and Required box the same way you did on the G/L Entries list.

4. Click Add.

5. Click Add Variable again to add End Date, configured the same way.

6. Click Add.

7. Select Base Variables from the tabs.

8. For the Start Date variable on the G/L Trial Balance base list, map it to pass through this Summary List’s Start Date variable.

  • Click the icon in the Value field to show a dropdown.
  • Select Variable from the dropdown.
  • Click the dropdown and select the Start Date variable.

9. For the End Date variable on the G/L Trial Balance base list, map it to pass through this Summary List’s End Date variable.

  • Click the icon in the Value field to show a dropdown.
  • Select Variable from the dropdown.
  • Click the dropdown and select the End Date variable.

With this in place, entering a Start Date and End Date on the Trial Balance Summary list cascades all the way down: into the Join list’s own Start Date and End Date, from there into the G/L Entries restrictions and the Beginning Balance Date calculated variable, and finally into the Beginning Balances Summary. Change the dates here, and the entire Trial Balance recalculates for whatever period you choose.

Building the Trial Balance from the Chart of Accounts

The Trial Balance Summary with Ending Balance is built on G/L entries, so it only includes G/L accounts that have entries in the period you enter. An account with a beginning balance but no activity in the period won’t appear. To include every posting account, the same way Business Central’s Trial Balance does, build a join list on the Accounts list and join the Beginning Balances and Activity for Trial Balance summary lists to it.

Creating the Chart of Accounts Join List

1. From the main menu, select Connectors.

2. Select the Edit icon next to your Business Central connector.

3. Select Lists on the left navigation pane, then select the Custom lists tab.

4. Click the Add custom list button, then select Join list from the dropdown.

5. Enter a Name for your join list, something like “Trial Balance by Account”, and select a Group to add it to. Then select Add list.

6. Select Joins from the left navigation pane.

7. Click the Add a list button. Select the Connector, Group, and List, choosing Accounts as the base list for the join. Select the Account number, Name, and Account Type fields, then select Add.

8. Click the Add a list button and choose your Beginning Balances for Trial Balance summary list.  Use the From field and To field to join Account number to G/L Account No., then select Add.

9. Select the Beginning Balances box. In the Join settings pane, select Fields and add Beginning Balance.

10. Select the arrow between the two lists to open the Join settings pane. Leave the Join type set to Left outer.

11. Click the Add list button again and choose your Activity for Trial Balance Summary List, joining Account number to G/L Account No. with a Left outer join.

12. Select the Activity for Trial Balance box. In the Join settings pane, select Fields and add Sum of Amount ($), Sum of Debit Amount ($), and Sum of Credit Amount ($).

A Left outer join keeps every account from the Accounts list, even when there is no matching row in either summary list.

Adding the Variables

1. Select Variables from the left navigation pane.

2. Under User Variables, add a Start Date and End Date variable the same way you did on the G/L Entries list, but check the Required box on both so users are prompted for the dates each time they run the list.

3. Add a Calculated variable named Beginning Balance Date, set to the following formula:

   {{Start Date}}

4. Select Joins from the left navigation pane.

5. Click the Beginning Balances box, select the Variables tab in the right-hand sidebar, click the asterisk next to End Date to change it to Variable, then select Beginning Balance Date.

6. Click the Activity for Trial Balance box, select the Variables tab, and set Start Date to the Start Date variable and End Date to the End Date variable the same way.

Restricting the List to Posting Accounts

Heading, Total, Begin-Total, and End-Total accounts only lay out the Chart of Accounts and don’t have entries posted to them, so leave them out of the Trial Balance.

1. Select Restrictions from the left navigation pane.

2. Click Add a Restriction.

3. Set the field to Account Type and the Restriction Type to Equals, with a value of Posting.

4. Leave Applies To set to Everyone and click Add.

Adding the Net Change and Ending Balance Calculated Fields

Accounts with no entries before the period, or no activity during it, return a blank from the summary lists. The If in these formulas returns 0 when the field is blank, so those accounts still get a Net Change and Ending Balance.

1. Select Fields from the left navigation pane, then select the Calculated fields tab.

2. Click the Add a calculated field button.

3. Enter a Name of “Net Change,” set the Field type to Currency with 2 Decimal places, and set the Field language as Popdock script with the following formula:

   If(IsBlank(AsString({Sum of Amount ($)})), 0, {Sum of Amount ($)})

4. Add another calculated field with a Name of “Ending Balance,” a Field type of Currency with 2 Decimal places, and set the Field language as Popdock script with the following formula:  

let beginning = If(IsBlank(AsString({Beginning Balance})), 0, {Beginning Balance});

let activity = If(IsBlank(AsString({Sum of Amount ($)})), 0, {Sum of Amount ($)});

beginning + activity

The names inside the curly braces must match the field names exactly.

The Trial Balance by Account list now shows a Beginning Balance, Net Change, and Ending Balance for every posting account in your Chart of Accounts, including accounts with no activity in the period.

If you have any questions please reach out to our Support Team at support@eonesolutions.com.

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.