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...
Suggested Answer

calculate the Amount value in processing report

(0) ShareShare
ReportReport
Posted on by 125

Hi

i need to find sum of amount field in customer ledger entries on my own processing report. how to find sum of amount in report.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    you have use below formula to get the Sum of Amount field from customer ledger entry, since Amount is a flowfield in Customer ledger entry table.

    You can write below expression on OnAftertGerrecord trigger of the report for customer ledger entry dataitem.

    CustomerledgerEntry.calcfields(Amount);

    newdecimalfield += customerledgerentry.Amount;

  • Arepaka Sai Profile Picture
    125 on at

    Thank you Sir

  • Suggested answer
    YUN ZHU Profile Picture
    102,829 Super User 2026 Season 2 on at

    Hi, Nitin's answer is very correct, just adding some info.
    Maybe use Record.SetAutoCalcFields([Any,...]) Method for better performance.

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-setautocalcfields-method

    And, if the fields specified is a SumIndexField in the key of the table, you can just use Record.CalcSums(Any [, Any,...]) Method

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-calcsums-method

    pastedimage1662617112399v1.png

    Hope this helps as well.

    Thanks.

    ZHU

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 551 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 372 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 339 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans