well, create shared variables for each value you want in the row.
in the detail section of the report, place the values into the appropriate shared variable. Once you are comfortable that the values are being updated correctly, suppress the detail section.
Create accessor formulas to view the shared variables and place them as desired in the group footer, viola, the rows have been pivoted.
You may want to reset the variables in the group header in case a value is missing.
HTH