If the number of detail lines is not too many, you can also not print in the detail at all but store what you would print in the detail to a variable and print that in the footer. You would need to store your detail values in a text variable and pull thoes values out in the footer to calculate your percentages.
HTH