I used the following code to get the sum of the field values :
{cSum(DataDataSource1,DataSource1.Hour)}
It works correctly for the all of the pages except the last one. If my last page has one record it shows 0 for the sum of the record and it's value gets added to the previous page!!
How can I resolve this problem ?