I have program setup where a stage captures monthly test results as repeatable events. How can I access the only last event’s value as a program indicator in this scenario?
There’s a stage called test results and repeatable events within it tracks blood sugar level every month. I want to create an indicator that calculates value for this tracked entity based on the last event only.
What you want might be acheived with an enrollment type program indicator. If you select “Enrollment” under “Analytics type” in the program indicator, the behavior of the indicator changes:
Each enrollment is only counted once, and only the latest event data will be used for each enrollment. You can read more about this in the documentation. There is also a presentation showing it a bit more visually:
Please reach out if you have any further questions or concerns!
Thank you very much! Your explanation and the accompanying slide made the concept so much clear.
I was wondering how enrollment indicators select latest event from events in a repeatable stage if multiple events happen in the same day. In my instance, events for same date are saved as timestamps without time values: