Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9093299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:03:54+00:00 2026-06-16T23:03:54+00:00

I have googled a lot about this but found nothing useful. This has been

  • 0

I have googled a lot about this but found nothing useful. This has been asked before here but noone has responded.

I have a tablix that presents grouped data with an amount column:

Tablix (data)
             Name (group)
                         Amount (rows)

If the “Name” group spans more than one page I want to show a page total for the sum of the amounts present on the first page. On the next page the carried forward total of the previous page must be shown.

I have tried many things, especially with my custom assembly (like keeping a dictionary with the total of each group and in the footer of the report try to show the total etc). The thing that really messes up any implementation is the order where report’s header, body and footer are “executed”.

Any ideas or suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:03:56+00:00Added an answer on June 16, 2026 at 11:03 pm

    Due to:

    • The fact that there is no way to get whether one instance of the grouped data are split in more than one page at the detail level (so that the carried forward total can be shown below the repeated column headers)
    • The page header and footer are always “evaluated” after the body elements
    • You can only reference on ReportItem in the expressions used in the page header and footer
    • You cannot make changes to the body elements from the page header or footer (mostly because of the point above)
    • You cannot extend the tablix control to add your own functionality

    I decided to go with showing the group page total in the footer, storing it and the picking it up to show it to the next page.

    This is done by having a cumulative total column using

    = IIf(RunningValue(Fields!AmountDC.Value, Sum, "Group1") <> Sum(Fields!Amount.Value, "Group1"), code.SetTotal(RunningValue(Fields!Amount.Value, Sum, "Group1")), Nothing) 
    

    which for the last detail row is setting it to “Nothing”

    In the footer a textbox picks up the last value of that cumulative total field.

    = code.SetTotal(Last(ReportItems!CumTotal.Value))
    

    and stores the current total in a private field in the embedded code.

    Private running As Double = 0
    
    Public Function SetTotal(ByVal val As Double) As Double
        running = val
        Return val
    End Function
    
    Public Function GetTotal() As Double
        Return running
    End Function
    

    And last in the page footer the stored total is picked up

    = code.GetTotal()
    

    It is too simple, but still it is the closest I could get with what I have after many trials!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have googled an serached a lot here about background runnin aps but have
I have been googling a lot about this, but I can't find a specific
I have Googled a lot and found a lot of solutions, but none of
I have googled a lot on this and i have found integrations of Linkedin
I've have gone through stackoverflow for days and googled a lot but can still
I have googled the topic for a while but haven't found what I'm looking
I have googled a lot and also searched in stackoverflow.com about how to sort
This question hasn't been asked yet. Some solutions probably have been proposed though to
I realize this has been somewhat touched upon in various places including here on
I have such a question, i have googled a lot, read about decorators and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.