Reworked analysis, calculate percentages on import

store percentages per application in mode/analysis
(each application/portal is treated separately overall)