Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

GL account data

Posted on by Microsoft Employee

Hi

Which table stores the sum of amount of GL entry's by total accounts  ?  

Best regards

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GL account data

    Hi Raokman,

    You can use query as below.

    SELECT [G_L Account No_] , SUM(Amount) as Amount

    FROM [Demo Database NAV (9-0)].[dbo].[CRONUS International Ltd_$G_L Entry] G

    Where [Posting Date] <= '05-31-17'

    Group by [G_L Account No_]

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GL account data

    but how do you limit that query to a date range or date point?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GL account data

    Use this query

    SELECT [G_L Account No_] , SUM(Amount) as Amount

    FROM [Demo Database NAV (9-0)].[dbo].[CRONUS International Ltd_$G_L Entry] G

    Group by [G_L Account No_]

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GL account data

    Ok i will try to use these views to get the sum of amounts grouped by account code.    

    please let me know if there is any other alternative .

    Thank you

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GL account data

    Hi Syrine,

    You would not get these fields in SQL, as these fields are calculated fields.

    Instead you can use SQL Views like

    Select * from .[dbo].[CRONUS International Ltd_$G_L Entry$VSIFT$1]

    or

    CRONUS International Ltd_$G_L Entry$VSIFT$2

    CRONUS International Ltd_$G_L Entry$VSIFT$3

    CRONUS International Ltd_$G_L Entry$VSIFT$4

    or SQL Queries to fetch the sum from G/L Entry Table.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GL account data

    thank you for your answer . In fact i am aworking on a BI project which extracts data from Nav database and i was hoping to use balance field in my Datawerhouse  .

  • Suggested answer
    RE: GL account data

    Hi,

    Since Balance is a FlowField on the Table 15 inside the NAV, you cannot query it in SQL.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GL account data

    Capturenav2.PNG  Capturenav2.PNG 

    These are the fields . Sorry for the bad screenshots , i don't have nav licence to get to the table designer 

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: GL account data

    You can use the standard page Chart of Accounts for that purpose, looking at Balance field. If you make visible "Limit totals to" filter, you can filter the balance result by a certain date. E.g., putting "..31.01.2016" there will show you the sum for G/L accounts at 31st of January.

    chart.png

    As Nareshwar already mentioned, this page is based on the Table 15.

  • Suggested answer
    RE: GL account data

    Hi,

    The mentioned fields must be in Table 15. I have attached a screenshot. Please attach your screenshot too.

    4846.Capture123.PNG

    Hope it helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans