Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Question about querying data from BC

(0) ShareShare
ReportReport
Posted on by 33

Hello, I'm trying to create a custom PBI report from our Business Central data. My question is this, when I query the Trial Balance data, it gives me the date that I queried the page, but nothing else regarding date; does this mean that it is giving me data only on that day or is this a cumulative amount from, say, the beginning of the year? Or how can I tell at what point the data I'm querying is starting from? Thanks.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,274 Moderator on at
    RE: Question about querying data from BC

    hi

    When you query the Trial Balance data in Business Central, it will give you a snapshot of the data as of the date you queried the page. It will not give you a cumulative amount from the beginning of the year unless you specify a date range in your query.

    To see the date range of the data you're querying, you can check the filters that are being applied to the page. In the Trial Balance page, click on the "Filter" button on the ribbon to see the current filters. You should see a "Date Filter" that specifies the date range of the data being displayed. If there is no date range specified, then the data is only for the date you queried the page.

    If you want to see the cumulative amounts from the beginning of the year, you can change the date range filter to start from the beginning of the year. This will give you a snapshot of the data as of that date, but for the entire year up until that date.

    Alternatively, you can use the "G/L Balance by Period" report in Business Central to see the cumulative amounts for each period in the year. This report will show you the balances for each period in the year, so you can see how they have accumulated over time

    DAniele

  • Suggested answer
    Steven Renders Profile Picture
    Steven Renders 5,199 Moderator on at
    RE: Question about querying data from BC

    To create such a PBI report, I would not query that page, but use the accounts and general ledger entries apis, inthe Financials api folder.

    Then you get all the data, create a star schema, add a date table and query it how you want to.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans