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...
Answered

Reports: Get field value from previous row and add it to current row

(0) ShareShare
ReportReport
Posted on by 60

Hello,
I am generating a report in business central using the vendor general ledger entry table.

I am trying to sum the  balance on each line based on the amount of the line plus the line balance previously calculated. I cannot set a previous amount since I have multiple groups with multiple currencies and would like to retrieve the amount of the previous line based on the group.

I have attached an image with the values I am getting without calculations (Black) with the values I would want to its left (red).


Screenshot-2023_2D00_02_2D00_16-095154-edited.jpg

I am still new to business central development.

If i have no way of doing it I think I will have to sort by currency and just do the calculations but i would love to hear your suggestions.

  • Verified answer
    Charbel Hleyhel Profile Picture
    60 on at

    I was able to fix it using the runningValue function in report builder with the scope as the group.

  • Verified answer
    Greg Enns Profile Picture
    1,122 on at

    Thanks for sharing your answer. As an alternate solution, you should also be able to do this in AL using a variable that you include in the dataset.

    See the NetWeight example here: learn.microsoft.com/.../devenv-report-ext-object

  • Charbel Hleyhel Profile Picture
    60 on at

    That is an interesting way of doing it and will test it the next time I would need to implement such feature!

    Thank you!

  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,468 User Group Leader on at

    Here is an example how to achieve running totals in a RDLC Report -

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

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 755 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 413 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 387 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans