web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SSRS Report show total value from previous page

(0) ShareShare
ReportReport
Posted on by

Hello,

I have table in my report and I have to show RunningValue at the end of each page(which I am doing correct right now) and next thing is that at begining of the next page should be value from previous page. I was trying to do it with:

x=Sum(ReportItems!CustCollectionTrans_RemainAmount2.Value); -> value for current page

y=(ReportItems!Textbox114.Value) which is equal to :RunningValue(Fields!CustTransOpenAmountCur.Value, SUM, "custCollectionJourCustTransTmp"); 

I have to substract y - x in page header, but I cant use more than one ReportItem in page Header.

Any other suggestions ?

Thank you!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    use a (small) hidden tablix to save the ReportItems... Value(s). then fetch the value from the cell(s) of this tablix for usage with your formula. this is standard doing of working with ssrs reports.

  • Community Member Profile Picture
    on at

    Hello,

    I can find current page amount only in header/footer with that expr: x=Sum(ReportItems!CustCollectionTrans_RemainAmount2.Value)

    and after that I cant use it in the report body ( put it in table or anything else, its from different scope).

  • keoma Profile Picture
    32,729 on at

    so save that value in a textbox.

  • Community Member Profile Picture
    on at

    I cant save it in textbox either it shows same error (different scopes)

  • Community Member Profile Picture
    on at

    Any other suggestions?

    Thank you!

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    this should help you. define some get/set functions in the code section.

    stackoverflow.com/.../group-page-totals-and-carried-forward-totals

  • Community Member Profile Picture
    on at

    Hi,

    When I create new function in report Code and after I try to use Set function in report footer, I think its not finding the function (Error 3 : SetPageTotal is invalid.). Also when I am typing : Code. , after the point the droping menu doesnt show my new functions. So I think the report its not recognize the new functions in report Code.

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    follow these links (although it has to do in the base with NAV. doesn't matter, sql report technique is the same):

    msdn.microsoft.com/.../dn610969

    mibuso.com/.../simplifying-document-reports-in-nav-2013

  • Community Member Profile Picture
    on at

    Good morning,

    I still cant reach my Code.Function from textbox expr. The strange thing is that when I type my functions in Custom Code window and after reopening the design window the Code window is empty. Maybe the code its not saved and that why it is unreacheble from my TextBox expr.

    Thank you!

  • Verified answer
    keoma Profile Picture
    32,729 on at

    hi,

    let's say "SubTotal" is the name of the cell in your data tablix, where you store the runningvalue. create a textbox in the footer and set the value to  Last(ReportItems!SubTotal.Value) to view the runningvalue on the current page. create another textbox in the header with the value First(ReportItems!SubTotal.Value) for vieweing this value on the next page.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans