Information about predictor calculation for aggregate data

Hi,

I hope everyone is doing well and stay safe.

I created a predictor as following for the monthly data.

  • Generator – Mc-TBReg * 2
  • Organisation unit level = Health Facility
  • Sequential sample count = 2
  • Annual Sample count = 0

When I run the predictor from period Jan to Dec 2020, 8 Record inserted to the predictor output data element 6thAugust2020. I am using DHIS2 version 2.33.5

Following that, I created a pivot table include the predictor output element “6thAugust2020” and the element which I used in generator of predictor “MC-TBReg”. The result shown as below. I didn’t understand the actual calculation, can anyone help to know how the calculation was happened.

predictor result

Regards,
Baktash Salehi

Hi @baktash.salehi,

Your predictor must have an aggregate function in the generator for the predictor to know how to use the sequential sample. The functions are listed here: https://docs.dhis2.org/master/en/user/html/manage_predictor.html

Try something like “sum(Mc-TBReg*2)” That should take the sum of the two previously reported values * 2

Hope that helps.

Hi,

Thank you got it