Hi,
I have a sql statement that gets the price and names of products in receipts. More than one product may be bought in a single receipt. I created a table to select all the receipts. I need to get monthly total, daily total and grand total of all receipts and also the sum of a single receipt. I added three groups to the table; for one total of receipt, one for daily total, one for monthly total (from inner to outside).
so my reports looks like this
receipt 1 01.01.2013
product1 10$
product2 20$
product3 30$
receipt total 60$
receipt 2 01.01.2013
product1 11$
product2 22$
product3 33$
receipt total 66$
Daily Total 126$
receipt 3 02.01.2013
product1 15$
product2 25$
receipt total 40$
Daily Total 40$
Montly Total 166$
receipt 4 02.02.2013
product1 50$
receipt total 50$
Daily Total 50$
Montly Total 50$
Grand Total 216$
Numbers of receipts in a page is not constant, even if a receipt has too many products, its rows may be splitted into several pages.
My reports works fine. But I should print in the header, the sum from first record till the last record in the last page.
I've read the thread,
http://social.msdn.microsoft.com/Forums/is/sqlreportingservices/thread/1e46ee76-bcb5-4541-9627-6fef5ebef060
But it does not work. When i write down the code (Last(ReportItems!textbox12.Value)) in the header, even if it is supposed to add till the last record in the last page but it adds the values in the current page!
Thanks in advance...