web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Retreiving Year-end Trial balance for all of the entities under one enviroment

(1) ShareShare
ReportReport
Posted on by 5

How can I get figures for Trial balance as of year end using PowerBI desktop.

As of now when going into V2.0 and then selecting "trial balances", it puts out the current balances as of YTD with entries made in the current year. However, what I am looking for is to get an Trial balances in PowerBI desktop that would show balances as of 31/12/2022 for all of the entities at once?

Thank you

I have the same question (0)
  • DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hi

    you could call up from power BI the url to the trialbalance API like this

    GET https://{businesscentralPrefix}/api/v2.0/companies({id})/trialBalances?$orderby number&$filter=dateFilter ge 2019-01-01 and dateFilter le 2019-12-31

    applying filters &$filter=dateFilter ge 2019-01-01 and dateFilter le 2019-12-31

    check my answer if it helped you, thanks

    DAniele

  • MU- Profile Picture
    5 on at

    Apologies, not sure if I follow.

    In the powerBI desktop you mean to connect using Trial balance API link? 

    Initially what I am trying to get is the chart of accounts balances per 31-12-2022.

    Thank you for your help

  • DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    I mean like this

    pastedimage1675259047668v1.png

    pastedimage1675259109902v2.png

    DAniele

  • MU- Profile Picture
    5 on at

    Thank you for your help. Just to clarify should I use OData link or Soap URL? Also, it seems like that would display trial balance only for one entity, is there a way to make it so it displays for all?

    Once, I get to this point, what should I do so it shows the balances per 31-12-2022?

    I appreciate your help and patience

  • DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    the parameter in red allows you to filter the dates

    https://{businesscentralPrefix}/api/v2.0/companies({id})/trialBalances?$orderby number&$filter=dateFilter ge 2019-01-01 and dateFilter le 2019-12-31

    look this for filter

    https://learn.microsoft.com/en-us/dynamics-nav/using-filter-expressions-in-odata-uris

    check my answer if it helped you, thanks

    DAniele

  • MU- Profile Picture
    5 on at

    1) When using the SOAP Url from Business Central i get a table below, should I use Odata link isntead?

    pastedimage1675262328676v1.png

    2) When using Odata link I get TB displayed as of today, and then i guess i should insert the filter you are referring to right? When using the filter you shared I get an error like this.

    pastedimage1675262556267v2.png

    Thank you for your help, it would be great if you could guide me further

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 702 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans