Adding totals on decimal field

As the reporting solution is changed, most of the old functions are either removed or replaced. The next small recipe will show you a very basic but widely used function to get a total.

How to do it...

  1. First, create a report by following the Creating an RDLC report recipe.
  2. Open the report in the designer mode and navigate to View | Layout (Alt + V, Y) to alter the report visual layout.
  3. Select the last row of the table control, right-click and navigate to Insert Row | Outside Group – Below.
  4. In the newly added row, right-click on the cell of column Balance_Customer and select Expression.
  5. Set the following value for the expression as you reach a form similar to the following screenshot:
    =SUM(Fields!Balance_Customer.Value)
    How to do it...
  6. Save and close the report.

How it works...

In NAV classic reporting, we used to set the data item property TotalFields or function CREATETOTALS. As both these options are not available for the NAV 2013 report, we need to base our report totals on Visual Studio functions.

Expression and Scope are the two parameters for the Visual Studio report designer SUM function. Expression is required field on which aggregation need to be done whereas a video scope is the name of a grouping, dataset, or data region.

See also

  • Creating an RDLC report
  • Creating a matrix report
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.193.148