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

Calculating average Row-wise

(0) ShareShare
ReportReport
Posted on by 700

Hi All,

In a report I have to display the Average row-wise.

Attached is the expected report layout.

I have to sum each value of the row and divide it by total no of customers on the report.

How can I achieve this ? Please suggest.

CustBasedPerformanceMetrics.png

I have the same question (0)
  • logilun Profile Picture
    50 on at

    Write code to sum your values and add a column in your excel export or export a new column with a calculation.

    You may want to look deeper into the code of your object to understand the Excel methods in NAV. Also have a look in other Excel export objects of Navision. They give a lot of hints.

  • Dynamics 365 Business Central Profile Picture
    700 on at

    I don't want to deal with Excel import or export.

    It is just a layout.

    I have to calculate the sum and average on RDLC only.

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    in your custom report add a new field "average" in the line dataitem, add a new variable average to the report vars.

    in trigger OnAfterGetRecord add the code to calculate the average value.

    in the layout add the new field.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,965 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,125 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 961 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans