web
You’re offline. This is a read only version of the page.
close
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

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,698 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
    95,329 Super User 2025 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans