Skip to main content

Notifications

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

  • Suggested answer
    keoma Profile Picture
    32,727 on at
    RE: Calculating average Row-wise

    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.

  • Dynamics 365 Business Central Profile Picture
    700 on at
    RE: Calculating average Row-wise

    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.

  • logilun Profile Picture
    50 on at
    RE: Calculating average Row-wise

    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.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 756

#2
YUN ZHU Profile Picture

YUN ZHU 731 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 529

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans