What do you mean by "wrong total"? If you put the field in a group header, it will give you the first value in the group. If you put it in a group footer it will give you the last value. As zanyar-Jalal stated, you'll need to create a summary - although you may not need it for all group levels, depending on what you're trying to show on your report.
-Dell