Hi Calle
Hope you doing well.
You are correct in a sense of different analytics type may required for indicator aggregation 
There are better and easy way to calculate. If you minutely look at my earlier mail, probably you identify that, I have written to perform aggregation according to aggregation type of the particular data element, which might be sum, average, average (sum in organisation unit hierarchy etc.). After that the indicator calculation should done.
Probably my earlier mail have difficulties to understand due to only one example. Let me give another example as well-
Probably there is a data element for number of doctors posted in an health facility with aggregation type average (sum in organisation unit hierarchy) and another data element for number of patient visited with aggregation type sum.
Now you might have the below data table-
Hospital A, January, Doctor posted- 6
Hospital A, February, Doctor posted- 4
Hospital A, March, Doctor posted- 6
Hospital A, January, Patient visited- 3000
Hospital A, February, Patient visited- 4000
Hospital A, March, Patient visited- 6000
Hospital B, January, Doctor posted- 40
Hospital B, February, Doctor posted- 50
Hospital B, March, Doctor posted- 80
Hospital B, January, Patient visited- 40000
Hospital B, February, Patient visited- 30000
Hospital B, March, Patient visited- 40000
···
Nayeem Al Mifthah
Health Information Systems Specialist
Support to the National HMIS
MIS, Directorate General of Health Services
Ministry of Health and Family Welfare, Bangladesh
Telephone: +880-2-58816459 | Fax: +880-2-58813875
Mobile: +88-01914 030 574 | Email: n.mifthah@gmail.com
Skype: nayeem.a.m | LinkedIn: linkedin.com/in/nayeemam
