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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Calculate beginning balance per GL Account number with SQL

(0) ShareShare
ReportReport
Posted on by

Hi,

I am working on a requirement where I need to calculate beginning balance for a GL Account number using SQL.

 

For example,

Report = Balance Sheet for May, 2015

GL Account number = 1005, 

I need to calculate beginning balance using SQL query.

*This post is locked for comments

I have the same question (0)
  • Jens Glathe Profile Picture
    6,092 on at

    I am mildly worried by this kind of posts. I mean no offense, but what is NAV for? Why circumvent its functionality to implement parts in SQL, for whatever reason? If you must use this information in a different system on an on-demand basis, why not use it via web services? You have the C/AL functionality there, can use flowfields and other checking which is harder or impossible to do directly in SQL.

  • Verified answer
    mmv Profile Picture
    11,471 on at

    Hi,

    The Balance displayed in the GL Account Card is from the "G/L Entry" table, so you may write a query to bring the data from [Company Name$G_L Entry] table where the [Posting Date] < 01 MAY 2015 and [Account No_] = '1005', take the sum of [Amount] field.

  • Community Member Profile Picture
    on at

    I regularly download a simple trial balance consisting of location, department, account #, account description, beg bal, p1, p2, p2...activity, and then the ending balance. 5,000 lines, 18 columns, on-demand. Plug it in and play.

    Reason being that that is all that is needed to produce a rich set of custom financial reports, which no way in h-e-double-hockeysticks can be created in NAV.

    That's one possible reason...

  • Jens Glathe Profile Picture
    6,092 on at

    Point taken :) RDLC reports really are a festering sore.

  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    hi,

    only some suggestions.

    you can use Excel Power Pivot & Power Query to build nice "BI like" reports.

    nice doc here:

    www.wise.is/.../BIwhitepaper_MicrosoftDynamicsNAV2015.pdf

    you can use also SSRS (SQL Server Reporting Services) based on standard NAV Sample Reports with parameters

    robertostefanettinavblog.wordpress.com/.../sql-server-reporting-services-ssrs-links-and-nav-demo-reports-2

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks, your suggestion worked !

  • amerriwether Profile Picture
    25 on at

    Kinjal,

    I saw the solution for obtaining the beginning GL Balances.  I was wondering if you have the SQL Query to add the GL Transactions?   Thank you.

    Anthony

  • amerriwether Profile Picture
    25 on at

    Why don't you just answer the guys question?  These types of replies stink of pompous. Answer the question.. or get out ofvthe conversation.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans