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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

AL Calculation of the remaining amount in the employee ledger entry/Detailed Employee Ledger Entry table based on GL account

(0) ShareShare
ReportReport
Posted on by

Dear All,

I need to pick the total remaining amount for employee related transactions.
I need a filter by GL Account (expense) that's affected on the debit side after posting employee expense/surrender.
How should I filter by GL account in order to calcsum the remaining amount?
Do I have a GL Account field in Employee ledger Entry table or  Detailed Employee Ledger Entry?
Should I use bal.Account no field be used?

Kindly assist

  • Suggested answer
    Bilal Haider Profile Picture
    487 on at

    Hi,

    Employee Ledger Entry has amounts that are sum of entries from Detailed Employee Ledger Entry table. So, you need to use Detailed Employee Ledger Entry. If you need the Remaining amount for a single employee then you achieve it simply by using the formula like this: Sum("Detailed Employee Ledger Entry".Amount WHERE (Employee No.=FIELD(No.))) I am using this formula on Employee table to get to know how much I have to pay to employee. If you want to get total remaining for all employees then use Sum("Detailed Employee Ledger Entry".Amount

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 July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 719 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 410 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 369 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans