Get latest event value as Program Indicator

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.

1 Like

Hi @Aatish_Neupane,
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!

Markus

2 Likes

Hi @Markus

Thank you very much! Your explanation and the accompanying slide made the concept so much clear.

1 Like

@Markus

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:

image

1 Like