I am not sure if this is an expected behavior or Not. I have two data elements one with aggregation SUM (DE1) and the second with aggregation NONE (DE2).
Let’s assume that we have a 3 level org unit structure and I collected DE3 at level 3 (not aggregated) and collected DE1 at Level 2 (aggregated). Now if I create an indicator that adds the two data elements with the numerator DE1 + DE2, I expect the indicator to respond as follows.
- At level 3, Only DE2 with no aggregation is displayed (This works perfectly fine)
- At level 2, Only DE1 collected at Level 2 should have been displayed but the indicator is responding with DE1 at level 2 plus DE2 of a single facility at level3
- At level 1, Only DE1 collected at Level 2 should have been displayed but responds with sum of DE1 at level 2 plus DE2 of multiple facilities at level 3.
The same happens if we ask DE2 at higher levels where the aggregation was not suppose to happen.
I am using DHIS2.40.0