views:

727

answers:

3

I'm attempting to show a sum in a table footer on a report. It will be in the body of the report and can't be in the header or footer. The table footer repeats on each page but should show the sum only on the last page. It will show another piece of text on all other pages. Is this possible?

Additional pieces of information: The detail part of the table isn't a consistent height, but the page is a consistent height. I can't assume a standard number of detail items per page.

Just to be clear. I was talking about adding it to table footer and not the page footer. It should still be in the page body.

A: 

try something like this

=iif(Globals!PageNumber=Globals!TotalPages,data,nothing)
DForck42
You can't use globals in the page body.
BenMaddox
well you contradict yourself a couple of times in your post, stating that you do and then don't want it in the footer. which is it?
DForck42
I want it in a table footer, not the report footer.
BenMaddox
ok. a group footer or a footer for the whole table?
DForck42
A: 

if you want it in the body, if the rest of the report's layout shifts dynamically, it won't render in the same spot. otherwise it should render in the same spot and you can just put it at the bottom of the last page.

remember, a page is 8 1/2 x 11. if you have 1 inch margins, the first page ends at 6.5 inches.

DForck42
+1  A: 

Can you not just create a group that includes a group footer. Then in the group properties make sure that the "Repeat Group Footer" isn't checked and Sum() the total in the group footer?

Nathan