The idea to do at modeling level is through an APD process.
I mean create your detailed level query(not summary) with respective chars in rows along with replacement paths to calculate difference.
From this query-->Move the data to a Direct update DSO by including a ABAP Routine to convert your detailed report to a Summary level with Average of all your values.