What do you want to resolve? Are you asking for (1) help with transforming that data in the load or (2) displaying in the front end. If (1), you need to explain and possibly supplysamples of your source data. If (2), then you need to describe in detail your data structure and supply a sample QVW/QVF containing some representative data.
In either case, you need to explain the calculations you want to take place.