I would like to create an indicator for % change between the reporting period and the previous period. I have successfully created this indicator using data elements from aggregate data sets using .periodOffset(-1) in my indicator numerator and denominator.
However, I would like to also create this same indicator using event type program indicators but “I{UID}.periodOffset(-1)” doesn’t seem to be working as I expect (my indicator is only evaluating to 0).
I explored using periodOffset as part of the program indicator boundaries but this seems to be limiting as it seems like I’m required to set a period type which makes the indicator less dynamic then the indicators I set up using aggregate data.
Any thoughts on how to approach this indicator would be very appreciated! Thank you
Would you please explain the use case further? What is the program indicator supposed to track in the event program? Would you share more info so it is clearer why the value is being evaluated to 0?
I think it’s possible to leave the “period type” blank, right?
As you add more info, I will try to research too. Thanks!
My use case is that I have a program that collects data for a nutrition program and I would like to calculate the relative change in admissions to the program between periods. Admissions in my program can be counted by the number of events in the first stage.
In my program indicator counting events in the first stage, when I leave the ‘period type’ blank in my boundary then the program indicator evaluates as if there was no offset specified at all.
Hello @Gassim, any findings from your side? I’m still looking for a way to set up a dynamic period offset program indicator. I re-tested leaving the period type blank in the play demo (v40) but the result was that no offset was applied (hence leading to my relative change indicator evaluating to 0…). In play, I tested by cloning the ‘Malaria case count’ program indicator and setting a period offset for the boundaries. The three I looked at where leaving the period type blank, setting to monthly, and setting to weekly. When filling the period type, the results were as expected (see below).
Do you know if there is another means of setting this indicator up to investigate? I tried apply ‘.periodOffset(-1)’ to the program indicators in my indicator formula but this didn’t work (the indicator calculated to 0).