A common requirement is to add a running totals sum and carry foward which displays the actual sum on the next page. Following the tutorials like this by André it’s easy to implement also for Dynamics AX.
- Start Visual Studio as Admin and open CustSalesOpenOrders_NA report from the application explorer
- Open the report design
- Add 2 new columns on the right side and set Hidden property to TRUE
- Open the property dialog for the first new column and change the name to RunningTotal
- Set the following expression as value
=RunningValue(Fields!amountRemainingMST.Value,SUM,"CustSalesOpenOrders_NADS") - Open the property dialog for the second new column and change the name to RunningTotalPrev
- Set the following expression as value
=RunningValue(Fields!amountRemainingMST.Value,SUM,"CustSalesOpenOrders_NADS") – Fields!amountRemainingMST.Value - In the report design create a new text field in the report header above the amountRemainingMST
- Set the following expression as value
="Running Total: " +cstr(First(ReportItems!RunningTotalPrev.Value)) - In the report design add a new footer and add a text field in the footer under the amountRemainingMST
- Set the following expression as value
="Running Total: " +cstr(Last(ReportItems!RunningTotal.Value)) - Save and deploy the report
- Open Dynamics AX go to Sales and Marketing > Reports > Sales Orders and start the Open Sales Orders report
Your report should look like this, including a page sum and a carry forward on the next page
